Alfonso XII (Alfonso Francisco de Asís Fernando Pío Juan María de la Concepción Gregorio Pelayo; 28 November 1857 – 25 November 1885) was King of Spain, reigning from 1874 to 1885. After a revolution deposed his mother Isabella II from the throne in 1868, Alfonso studied in Austria and France. His mother abdicated in his favour in 1870, and he returned to Spain as king in 1874 following a military coup against the First Republic. Alfonso died aged 27 in 1885, and was succeeded by his unborn son, who became Alfonso XIII on his birth the following year.
To date, he is the last monarch of Spain who died whilst on the throne.