Treaty of the Pyrenees
It roughly ended with the Treaty of the Pyrenees in 1659 that ended the Franco-Spanish War of 1635 to 1659. Some extend the Golden age up to 1681 with the death of the Pedro Calderón de la Barca, the last great writer of the age.