Answer
Alfonso XII studied in Austria and France after the Glorious Revolution of 1868. The revolution was led by General Prim, who overthrew Queen Isabella II and forced her into exile. Alfonso was the son of Isabella II and was therefore the rightful heir to the throne. However, he was still a minor at the time of the revolution and was unable to take power.