The joining of the two crowns deprived Portugal of a separate foreign policy, and Spain's enemies became Portugal's.
In the 17th century, taking advantage of this period of Portuguese weakness, many Portuguese territories in Brazil were occupied by the Dutch who gained access to the sugarcane plantations.