Brazilian independence was recognized in 1825, whereby Emperor Pedro I granted to his father the titular honour of ''Emperor of Brazil''. John VI's death in 1826 caused serious questions in his succession. Though Pedro was his heir, and reigned briefly as Pedro IV, his status as a Brazilian monarch was seen as an impediment to holding the Portuguese throne by both nations. Pedro abdicated in favour of his daughter, Maria II (Mary II). However, Pedro's brother, Infante Miguel, claimed the throne in protest. After a proposal for Miguel and Maria to marry failed, Miguel seized power as King Miguel I, in 1828. In order to defend his daughter's rights to the throne, Pedro launched the Liberal Wars to reinstall his daughter and establish a constitutional monarchy in Portugal. The war ended in 1834, with Miguel's defeat, the promulgation of a constitution, and the reinstatement of Queen Maria II.