With the acclamation of John IV of Portugal, the Azores applauded the restoration of independence from the Iberian Union. This was not lost on the Spanish settlers in Angra do Heroísmo, who had become a privileged class during the Union, and which made it difficult for them to remain after 1640, when Portuguese sovereignty was restored.