The marriage between Pedro II and Teresa Cristina started off badly. With maturity, patience and their first child, Afonso, their relationship improved. Later Teresa Cristina gave birth to more children: Isabel, in 1846; Leopoldina, in 1847; and lastly, Pedro, in 1848. Both boys died when very young, which devastated the Emperor and completely changed his view of the Empire's future. Despite his affection for his daughters, he did not believe that Princess Isabel, although his heir, would have any chance of prospering on the throne. He felt his successor needed to be male for the monarchy to be viable. He increasingly saw the imperial system as being tied so inextricably to himself, that it would not survive him. Isabel and her sister received a remarkable education, although they were given no preparation for governing the nation. Pedro II excluded Isabel from participation in government business and decisions.