The house was founded by Afonso I, 1st Duke of Braganza, illegitimate son of King John I of Portugal of the House of Aviz, and would eventually grow into one of the wealthiest and most powerful noble houses of Iberia during the Renaissance period. The Braganzas came to rule the Kingdom of Portugal and the Algarves after successfully deposing the Philippine Dynasty in the Restoration War, resulting in the Duke of Braganza becoming King John IV of Portugal, in 1640. The Braganzas ruled Portugal and the Portuguese Empire from 1640 and with the creation of the United Kingdom of Portugal, Brazil and the Algarves, in 1815, and the subsequent independence of the Empire of Brazil, in 1822, the Braganzas came to rule as the monarchs of Brazil.