José María Castro Madriz

José María Castro Madriz
Portrait by Aquiles Bigot
1st and 5th President of Costa Rica
In office
8 May 1866 – 1 November 1868
Preceded byJesús Jiménez Zamora
Succeeded byJesús Jiménez Zamora
In office
8 May 1847 – 16 November 1849
Vice PresidentJosé María Alfaro Zamora
Juan Rafael Mora Porras
Manuel José Carazo Bonilla
Preceded byJosé María Alfaro Zamora
Succeeded byMiguel Mora Porras (Acting)
Second Designate to the Presidency
In office
10 August 1882 – 11 May 1885
PresidentPróspero Fernández Oreamuno
Bernardo Soto Alfaro
Preceded bySalvador Lara Zamora
Succeeded byApolinar Soto Quesada
Third Designate to the Presidency
In office
23 April 1881 – 10 August 1882
PresidentTomás Guardia Gutiérrez
Saturnino Lizano Gutiérrez
Preceded byPosition established
Succeeded byJosé María Oreamuno y Oreamuno
Other positions
18th and 22nd President of the Supreme Court
In office
21 October 1870 – 25 November 1873
Preceded byJuan José Ulloa Solares
Succeeded byVicente Sáenz Llorente
In office
29 April 1860 – 8 May 1866
Preceded byVicente Herrera Zeledón
Succeeded byManuel Alvarado y Barroeta
Secretary of Foreign Affairs
In office
16 August 1883 – 11 May 1885
PresidentPróspero Fernández Oreamuno
Bernardo Soto Alfaro
Preceded byEusebio Figueroa Oreamuno
Succeeded byAscensión Esquivel Ibarra
In office
8 October 1877 – 2 April 1883
PresidentTomás Guardia Gutiérrez
Saturnino Lizano Gutiérrez
Próspero Fernández Oreamuno
Preceded bySaturnino Lizano Gutiérrez
Succeeded byEusebio Figueroa Oreamuno
In office
25 November 1873 – 1 December 1873
PresidentTomás Guardia Gutiérrez
Preceded byLorenzo Montúfar y Rivera
Succeeded byLuis Diego Sáenz Carazo
In office
14 August 1859 – 17 August 1859
PresidentJuan Rafael Mora Porras
Preceded byNazario Toledo Murga
Succeeded byJesús Jiménez Zamora
In office
7 June 1846 – 8 May 1847
PresidentJosé María Alfaro Zamora
Preceded byJoaquín Calvo Rosales
Succeeded byJoaquín Calvo Rosales
In office
11 April 1844 – July 1844
PresidentJosé María Alfaro Zamora
Preceded byPosition established
Succeeded byJoaquín Calvo Rosales
Vice President of Costa Rica
In office
16 September 1846 – 8 May 1847
PresidentJosé María Alfaro Zamora
Preceded byFrancisco Oreamuno Bonilla
Succeeded byManuel Antonio Bonilla Nava
President of the House of Representatives
In office
3 March 1845 – 1 March 1846
Member of the House of Representatives
for Desamparados
In office
July 1844 – 1 March 1846
Personal details
Born1 September 1818
Died4 April 1892 (age 73)
San José, Costa Rica
PartyIndependent
Spouse
​
​
(m. 1843; died 1885)​
Children13
Parents
RelativesAntónio Pinto Soares (uncle-in-law)
Próspero Fernández Oreamuno (brother-in-law)
Minor Cooper Keith (son-in-law)
Rafael Yglesias Castro (grandson)
EducationNational Autonomous University of Nicaragua at León (DCL, PhD)
Occupation
  • Lawyer
  • philosopher
  • professor
  • politician
  • diplomat
  • writer
Signature

José María Castro Madriz (1 September 1818 – 4 April 1892) was a Costa Rican intellectual and statesman who served as President of Costa Rica from 1847 to 1849 and from 1866 to 1868. Inaugurated at age 29, he was the youngest person to ever serve as President of Costa Rica. Over a public career spanning more than four decades, he held numerous offices of state and became the first person to preside over all three branches of the Costa Rican government.

He was indirectly elected president in 1847 and served until 1849 when he resigned under the threat of a coup. He was indirectly president again in 1866 and served 1868 when again he resigned under military pressure.

Ideologically a liberal, Castro was a strong believer in the principles of the Enlightenment and in freedom of the press. He pushed for reforms to strengthen democracy in Costa Rica. He was also a member of Freemasonry. Throughout his career, he advocated the abolition of the death penalty, antimilitarism, and free compulsory education.

On both occasions, Castro was prevented from completing his presidential term as a result of military coups. During his first presidency, on 31 August 1848, he proclaimed Costa Rica a sovereign republic, formally ending its remaining ties to the defunct Federal Republic of Central America. He also adopted the national tricolour flag designed by his wife, Pacífica Fernández.