What ended the period of military rule in Panama in 1989? People voted to remove the corrupt military leader and installed a new government. The dictator who ruled the country for years died and people installed a democracy. Military leaders sold their control of the canal and government officials took control. United States troops invaded the country and removed the military leader from power.