Granada have moved to within a point of the Europa League places with a 3-2 win at Real Sociedad.
Antonio Puertas scored their opener against the run of play on 21 minutes from a Domingos Duarte cross on Friday night.
They doubled their advantage just before halftime when Roberto Soldado rounded Miguel Angel Moya to score.
He was offside when Yangel Herrera played the pass through to him but Real Sociedad defender Diego Llorente got a touch on the ball so the goal stood.
Real Sociedad responded well after the restart with Mikel Merino scoring after Granada had failed to clear a corner two minutes into the second half.
And the home side levelled on 83 minutes when captain Mikel Oyarzabal scored from substitute Nais Djouahra's cross.
It seemed Real Sociedad would take a deserved point but Duarte headed in Darwin Machis' cross with two minutes left.
Real Sociedad stay seventh which will earn them a Europa League place but Granada are now just two places and one point behind.
Later on Friday Real Madrid can go four points clear of Barcelona at the top of the table if they beat Alaves.
Australian Associated Press