Granada scored in each half to win 2-1 at Real Betis on Friday, ending a three-game losing streak to provisionally move out of the Spanish league's relegation zone.
Granada midfielder Gabriel Torje rifled home a poor clearance by goalkeeper Adrian San Miguel of a routine cross to put the visitors ahead in the eighth minute.
After strike partner Jorge Molina had hit the upright, Ruben Castro levelled for Betis in the 62nd.
But just as Betis surged forward in search of a winner, Granada midfielder Mikel Rico pounced on a loose ball, cut back onto his left foot to avoid a diving defender and fired into the roof of the net in the 74th minute to secure the points.
"We survived against a team that is at the top end of the table thanks to our sense of sacrifice," said Granada midfielder Iriney, who played the previous three seasons for Betis. "We have to keep working with our heads held high and our feet on the ground."
Betis remained fourth after its first loss in five games.
League leader Barcelona visits Mallorca on Sunday, before second-place Atletico Madrid hosts Getafe. Third-place Real Madrid then is at Levante.
On Saturday, it's: Rayo Vallecano vs. Celta Vigo, Espanyol vs. Osasuna, Real Zaragoza vs. Deportivo La Coruna, and Malaga vs. Real Sociedad.
Also on Sunday, Valencia plays Valladolid, while Sevilla travels to Athletic Bilbao.