Alfonso XII of Spain
In 1885, king Alfonso XII of Spain died And was provisionally succeeded by his daughter María de las Mercedes, Princess of Asturias until his wife's pregnancy turned out to be a boy, who became Alfonso XIII of Spain upon birth.