Sevilla remain in the hunt for a Europa League spot as Joaquin Caparros secured his first win since taking temporary charge with a 3-2 win over Real Madrid at the Ramon Sanchez-Pizjuan.
The visitors, who could have moved above city rivals Atletico and into second with a win, were without the injured Cristiano Ronaldo and suspended Gareth Bale and it showed as they posed little attacking threat.
Wissam Ben Yedder and Miguel Layun gave Sevilla a comfortable half-time lead, and after Sergio Ramos missed a penalty for Real, the defender then deflected the ball past his own goalkeeper to make the points safe.
Borja Mayoral's 87th-minute header and a successful Ramos penalty in stoppage time gave the scoreline a flattering look as impressive Sevilla moved seventh, three points behind Villarreal but with an inferior goal difference.
After a quiet opening 10 minutes, Franco Vazquez had the first chance of the evening for the home side but his shot cleared the crossbar.
The same player saw a shot blocked by Ramos, before Sevilla's early dominance paid off in the 26th minute.
Nicolas Pareja played a long ball towards Luis Muriel and his flicked header fell for Ben Yedder to slide the ball under goalkeeper Kiko Casilla.
Nacho almost turned the ball into his own net as he looked to clear another opening, but it was not long before Sevilla did add a second.
A superb counter-attack saw Steven N'Zonzi set up Layun and he lashed the ball home on the stroke of half-time.
Real Madrid were handed a lifeline early in the second half when Lucas Vazquez was brought down in the penalty area. Ramos stepped up and cracked his spot-kick against the crossbar.
Muriel almost added a third when through one-on-one and Sandro Ramirez glanced a header inches wide.
Sevilla looked to have sealed the points when Gabriel Mercado's speculative effort took a huge deflection off Ramos and gave Casilla no chance.
Mayoral's header was followed by another Ramos penalty, but there was no more time for Real to snatch an unlikely, and perhaps undeserved, equaliser.