Eden Hazard ended Real Madrid's drought in a match that coach Zinedine Zidane missed after he contracted the coronavirus.
Eden Hazard scored one goal and set up another as Real Madrid thrashed Alaves 4-1 to ease the pressure on their coach Zinedine Zidane, who was absent after testing positive for Covid-19.
Zidane's position has come under scrutiny again after Wednesday's defeat by third-tier side Alcoyano in the Copa del Rey but Madrid responded at Mendizorroza without their coach, or their captain Sergio Ramos, who was out with a knee injury.
Goals from Casemiro, Karim Benzema and Hazard put Madrid three up at half-time and while Alaves briefly threatened a fightback when Joselu headed in, Benzema added a second to put the result beyond doubt.
The victory is only Real Madrid's second in six matches and leaves them four points behind Atletico Madrid, who have two games in hand and play Valencia at home on Sunday.
Zidane tests positive for virus
Zidane was confirmed to have tested positive on Friday, leaving his assistant David Bettoni to take charge in the dug-out, although Bettoni was pictured on the telephone in the second half.
Bettoni took off Hazard as Alaves were gaining belief early in the second period but the Belgian enjoyed a positive outing overall that Zidane will hope is the start of a revival.
The 29-year-old has had a nightmare year and a half in Spain, with this only his third goal in La Liga and his first in the league away from home since joining from Chelsea for 100 million euros.
Benzema was the chief beneficiary as Madrid forgot their recent woes in attack.
There were strong performances too from Toni Kroos, Casemiro and Luka Modric in midfield, the latter providing a handful of supreme passes, one of which led to Benzema's second and Madrid's fourth.
Madrid's first half was probably their best of the season, prompted by an early goal from Casemiro to boost confidence, the Brazilian heading Kroos' corner inside the post.
Hazard scuffed a chance wide but was involved in the second as he tried to flick Lucas Vazquez's pass into Benzema but feathering it was enough, with Benzema given space to fire into the top left-hand corner.
Hazard made it three four minutes later. Kroos looked up and as Alaves pushed out, Hazard surged in behind, the ball looping over for him to control and finish past Fernando Pachecho.
Alaves pushed hard after half-time and were given hope when Joselu headed in from Lucas Perez's free-kick.
Yet the comeback was short-lived as Benzema raced onto another curling Modric pass out to the left, nipped inside and stroked into the far corner.
Earlier, Youssef En Nesyri scored his second hat-trick in four games as Sevilla dispatched Cadiz 3-0 to move up to third.
En Nesyri hit Cadiz twice in four minutes towards the end of the first half before making it three shortly after the hour to send Sevilla above Barcelona, who play Elche on Sunday.
The Moroccan striker's treble takes him level with Lionel Messi and Luis Suarez at the top of the league's scoring charts with 11 goals and makes it seven for him in the last four matches.
That spree included another hat-trick in his last outing at the Ramon Sanchez Pizjuan, against Real Sociedad earlier this month.
Trailing Atletico Madrid by eight points, Sevilla may have too much ground to make up to challenge for the title this season but Julen Lopetegui's side look favourites now to join Spain's traditional trio in the top four.
Cadiz, meanwhile, slip to ninth, below Real Betis, who came from behind to salvage a 2-2 draw at Real Sociedad by scoring twice in the last five minutes.
Real Sociedad were on course for a hard-earned victory at Anoeta when Alexander Isak and Mikel Oyarzabal put them two to the good early in the second half.
But Betis threw on the 39-year-old Joaquin for the last 13 minutes and he turned the tide, providing a superb assist for Sergio Canales in the 85th minute before finishing himself in the 92nd.
Real Sociedad drop to sixth, three points adrift of Barca in fourth. Betis climb to eighth.