However, in 1948, when the military staged a coup against the democratically elected government of Rómulo Gallegos, Pérez was forced to go into exile (going to Cuba, Panama and Costa Rica) for a decade.