Supported by the French, Neapolitans, and Portuguese rose up in revolt against the Spanish in the 1640s. With the Spanish Netherlands now very much on the defensive between French and Dutch forces after the Battle of Lens in 1648, the Spanish made peace with the Dutch and recognized the independent United Provinces in the Peace of Westphalia that ended both the Eighty Years' War and the Thirty Years' War.