Answer
As the Duke of Braganza, João led a successful revolt in 1640, which resulted in the restoration of Portuguese independence from Spain. This earned him the title of King John VI of Portugal and marked the beginning of the House of Braganza's rule that would last until the establishment of the Portuguese Republic in 1910.