In 1581 the Seven Provinces gained independence from the Habsburg rule, leading Philip II to prohibit commerce with Dutch ships, including in Brazil where Dutch had invested large sums in financing sugar production.