Alfonso XII was the husband of Maria Christina. They married in 1879, and their union produced three children, including the future King Alfonso XIII. Alfonso XII died in 1885, leaving Maria Christina as regent for their young son. She ruled Spain until 1902, when Alfonso XIII came of age.
Regal Reflections: The Life and Legacy of Maria Christina of Austria