On June 28, 2009, the Honduran military detained President Manuel Zelaya and flew him to exile in Costa Rica, ending 27 years of uninterrupted elected civilian democratic rule. The move was backed by the Honduran Supreme Court and National Congress, which selected Roberto Micheletti, the head of Congress, to fulfill the rest of Zelayas term. Zelayas removal was brought on by the ousted presidents insistence in pushing ahead with a referendum that was ruled illegal and eventually could have led to changes to the Honduran constitution.