The death of King John VI in 1826 led to a crisis of royal succession. His eldest son, Pedro I of Brazil, briefly became Pedro IV of Portugal, but neither the Portuguese nor the Brazilians wanted a unified monarchy; consequently, Pedro abdicated the Portuguese crown in favor of his 7-year-old daughter, Maria da Glória, on the condition that when she came of age she would marry his brother, Miguel. Dissatisfaction at Pedro's constitutional reforms led the "absolutist" faction of landowners and the church to proclaim Miguel king in February 1828. This led to the Liberal Wars in which Pedro eventually forced Miguel to abdicate and go into exile in 1834 and place his daughter on throne as Queen Maria II.