Real Madrid overcame the early dismissal of Sergio Ramos to beat Rayo Vallecano at the Bernabeu on Sunday night.
Spain defender Ramos was shown a red card in the 18th minute after collecting two soft bookings in the space of 30 seconds.
The first came after he brushed past Roberto Trashorras with the Rayo player theatrically going to ground and the second for a handball after Jose Manuel Casado fired a cross against his arm from close range.
By the time he departed, Madrid were already 2-0 up. Alvaro Morata, on his first league start, tapped home Mesut Ozil's right-wing cross in the third minute and Ramos himself grabbed the second with a powerful header from Ozil's inswinging free-kick.
Rayo had plenty of the ball in the second half but could not find a way past Madrid goalkeeper Diego Lopez.
Madrid remain third, four points behind city rivals Atletico and 16 adrift of runaway leaders Barcelona.
Barcelona are top with 65 points after a 2-1 comeback victory at Granada on Saturday in which Lionel Messi scored both goals.
Atletico were impressive 3-0 winners at Real Valladolid earlier in the evening.
Radamel Falcao's early opener was added to by Diego Costa, back in the side following a suspension, with Cristian Rodriguez adding a late third as Diego Simeone's men picked up their first away win since November 18.
Ten-man Valencia claimed an unlikely 2-0 win to add to struggling Real Mallorca's relegation worries.
Things looked to be going wrong for the hosts when a slow start was compounded by having midfielder Tino Costa sent off in the 28th minute.
But Mallorca could not take advantage and went behind in the 59th minute when Ricardo Costa headed Valencia in front.
Roberto Soldado doubled the lead in the 81st minute to boost his side's top-four hopes and leave Mallorca rooted in the bottom three.
Real Sociedad missed a chance to gain ground in their bid to qualify for the Europa League by failing to beat Levante at home.
Both goals came from penalties in the first half, scored by Carlos Vela for the hosts and Michel for the visitors, who played most of the second half with 10 men after left-back Nikos Karabelas was sent off for picking up two bookings.
Espanyol's remarkable revival under coach Javier Aguirre continued as a solitary Sergio Garcia goal earned the Catalan club a third consecutive league win.
Real Betis, though, are on the slide having failed to win in five attempts and Pepe Mel watched his charges struggle to create a handful of half-chances at the El Prat.
The hosts, who were perhaps unlucky not to win by a larger margin, climb to 12th in the table ahead of a daunting trip to Atletico.