Answer: criollos signed a petition and asked the king's son, Don Pedro, to rule.
Explanation:
When Napoleon invaded Portugal, in 1807, King João VI escaped to Brazil and decided to keep ruling from Brazil even after French troops had been reduced, establishing the United Kingdom of Portugal.
By 1820 a revolution started, a constitution was established, and the Portuguese King was forced back to Portugal. His son and heir, Prince Dom Pedro, was left behind to rule Brazil as regent, but he declared Brazil’s independence in 1822.