I think that The Peace of Westphalia in 1648, which ended the Eighty Years' War between the Dutch Republic and Spain and the Thirty Years' War between other European superpowers, brought the Dutch Republic formal recognition and independence from the Spanish crown.