The jailed mayor of Venezuela's capital may be released from prison to house arrest for health reasons.

The public prosecutor's office announced Friday night that it is seeking the move so Caracas Mayor Antonio Ledezma can undergo surgery.

Ledezma is a leader in the opposition and has been jailed since February on charges of plotting a coup against the South American country's socialist government — an allegation he denies.

Ledezma is expected to be moved from a military prison on the outskirts of Caracas to a hospital, and then released to detention at his home. In its statement, the prosecutor's office called the motion a precautionary measure.

The nature of Ledezma's health troubles were not immediately clear.