For 10 points, name this son of John VI of Portugal, who became the first ruler of an independent Brazil.
During this man's rule, his army was shaken by the "Revolt of the Parakeets," named for the green and yellow trim on the uniforms of the revolting battalion. He was also opposed by a movement called the Confederaton of the Equator led by Friar Caneca, who opposed his reforms and attempted to found a breakaway state. He first married Archduchess Maria Leopoldina of Austria and then wed Amelie de Beauharnais after her death, when he was forced to fight the Liberal War against his brother in order to secure his throne for his daughter Maria da Gloria. He's more famous for issuing the Grito do Ipiranga as regent with his sword drawn, after which he was declared emperor. For 10 points, name this son of John VI of Portugal, who became the first ruler of an independent Brazil.
During this man's rule, his army was shaken by the "Revolt of the Parakeets," named for the green and yellow trim on the uniforms of the revolting battalion.
Dom Pedro I of Brazil (or Pedro IV of Portugal)