Here is a table that has a list of the junta chairmen, presidents and heads of state of Costa Rica since independence from Spain and Mexico. From 1824 to 1838 Costa Rica was a state in the Federal Republic of Central America. After that it has been an independent nation.