1847 Costa Rican Head of State election
The Costa Rican election of 1847 took place shortly after the coup d'état that overthrew the first head of state elected in direct elections; Francisco MarÃa Oreamuno Bonilla who was formally overthrown although he had previously left office without resigning. The de facto president was José MarÃa Alfaro Zamora who was a candidate but was defeated by José MarÃa Castro Madriz.
These elections were held in two grades, first paid by all men over 20 or 18 if they were married or were teachers of some science, who chose the electors who voted to choose the positions in dispute. Also the electoral legislation established that, in five years, those who could not read or write won't be able to vote.