Real Sociedad have moved up to fifth place in the La Liga table with a 3-1 win at local rivals Athletic Bilbao.
The match was the final Basque derby to be played at the San Mames ahead of Bilbao's move to a new stadium next season.
Ibai Gomez powered the home side into a 30th-minute lead before Antoine Griezmann drew Sociedad level four minutes later when he headed in Xabier Prieto's cross.
Imanol Agirretxe put the visitors in front with just over 20 minutes to play as he converted the rebound after Gonzalo Castro's free kick had been saved.
The win was sealed in the 76th minute through substitute Carlos Vela's curled finish from the edge of the area.