Answer
John IV of Portugal's reign commenced after the successful restoration of Portuguese independence from the Spanish Habsburgs' control in 1640. This pivotal event marked the end of a 60-year union between the two kingdoms, paving the way for John IV's ascension to the Portuguese throne and the re-establishment of Portuguese sovereignty.