The aftermath of the intermittent 1640–1668 Portuguese Restoration War brought the House of Braganza as the new ruling dynasty in the Portuguese territories across the world (bar Ceuta), putting an end to the Iberian Union.