This is a list of Spanish heads of state, that is, kings and presidents that governed the country of Spain in the modern sense of the word.
Upon her death, he became sole King of Castile and Aragon, and the thrones were left permanently united to Philip II of Spain and successors.
[4] The only monarch from this dynasty was Joseph I, imposed by his brother Napoleon I of France after Charles IV and Ferdinand VII had abdicated.
A government in opposition to the French was formed in Cádiz on 25 September 1808, which continued to recognize the imprisoned Ferdinand VII as king.
The First Spanish Republic started with the abdication as King of Spain on February 10, 1873 of Amadeo I, following the Hidalgo Affair, when he had been required by the radical government to sign a decree against the artillery officers.
Between the death of Alfonso XII and the birth of Alfonso XIII, there was a period of seven months where the pregnant Queen Maria Christina served as Head of State with the title of Regent for her daughter Maria de las Mercedes, who was declared to be "Queen in Name" until the gender of her baby sibling was known.
The Second Spanish Republic was the system of government in Spain between April 14, 1931 when Alfonso XIII left the country following a period of social unrest after the collapse of General Primo de Rivera's dictatorship a year earlier, and April 1, 1939 when the last of the Republican (republicanos) forces surrendered to the Nationalist (nacionales) forces led by Francisco Franco, at the end of the Spanish Civil War.
Presidents in exile On October 1, 1936 General Francisco Franco was proclaimed Head of State (Caudillo) in parts of Spain controlled by Nationalist (nacionales) forces after the Spanish Civil War broke out.
In 1947, Franco proclaimed the restoration of the monarchy, but did not allow the pretender, Juan de Borbón, Count of Barcelona, to take the throne.
The Count of Barcelona renounced his claims in favour of his son in 1977, two years after Franco's death and Juan Carlos's accession.