Getafe beat host Leganes 3-0 to win Madrid's mini-derby on Friday.
Jose Bordalas' Getafe rose to fifth in the Spanish league ahead of the rest of the 20th round.
The Spanish capital's two powerhouses, Real Madrid and Atletico Madrid, play against Sevilla and Eibar, respectively, on Saturday.
Getafe defender Leandro Cabrera headed in a cross from Damian Suarez to open the scoring in the 12th minute.
Allan-Romeo Nyom added a second goal from another header in the 21st before forward Jorge Molino set up strike partner Jaime Mata to put the result beyond doubt in the 33rd.
Leganes goalkeeper Ivan Cuellar saved his side from an even bigger defeat when he rushed back and cleared a deflected shot by Mata from his line in the final minutes.
Leganes' first loss in five rounds kept it in second-to-last place.
Javier Aguirre's side was playing its first match since the club sold striker Youssef En-Nesyri to Sevilla.
Leganes generated nothing going forward in a match that turned testy in the second half. The referee booked eight players in the game.
Leganes' Ruben Perez was sent off in second-half injury time with a direct red card for shoving a Getafe player to the ground with play stopped following a foul.
Getafe rebounded from its most embarrassing loss of the season last weekend when it was stunned by third-tier Badalona 2-0 in the Copa del Rey. It had also lost its last two Spanish league games.
``We knew that, besides being a derby, Leganes plays very intensely at home and that we had to match their intensity,'' Mata said. ``We found our scoring touch early. To get the win after three losses in a row is important.''
Leader Barcelona will play its first match under coach Quique Setien against Granada on Sunday.
(For more sports news and updates, follow Ahram Online Sports on Twitter at @AO_Sports and on Facebook at AhramOnlineSports.)