sentences:  Philip I swore to rule Portugal as a kingdom separate from his Spanish domains, under the personal union known as the Iberian Union.The House of Braganza, also known as the Brigantine Dynasty, came to power in 1640, when John II, Duke of Braganza, claimed to be the rightful heir of the defunct House of Aviz, as he was the great great grandson of King Manuel I. John was proclaimed King John IV, and he deposed the House of Habsburg in the Portuguese Restoration War.The descendants of Queen Maria II and her consort, King Ferdinand II (a German prince of the House of Saxe-Coburg and Gotha), came to rule in 1853.