Guatemala's President Otto Perez Molina

A Guatemalan judge Tuesday barred President Otto Perez from leaving the country, hours after he was stripped of his immunity due to his alleged role in a customs fraud, the prosecutor's office said.

"The prosecutors' office sought a ban on leaving the country for President Otto Perez, and Judge Miguel Angel Galvez ordered it", prosecutors said on Twitter.