Real Madrid were made to wait, but eventually conjured a stylish 2-0 victory at Cadiz on Saturday in La Liga, ahead of their Champions League trip to face Chelsea.
Nacho Fernandez and Marco Asensio struck to help champions Madrid cut Barcelona's lead at the top of the table to 10 points, before the Catalans visit Getafe on Sunday.
Both sides hit the woodwork in the first half but Madrid overran their opponents, with only Cadiz goalkeeper David Gil keeping them at bay.
Eventually, when it seemed they had tried everything, Nacho broke the deadlock in the 72nd minute with a drive from distance, with Asensio adding another four minutes later.
"Good attitude, good commitment, good combinations, the team played very well," said Madrid coach Carlo Ancelotti.
"It was a game that could have been a trap — the players were concentrating well, and we played well."
Ancelotti rang the changes at the Nuevo Mirandilla to rest players for the visit to Stamford Bridge for the quarter-final second leg, including veteran midfielders Toni Kroos and Luka Modric and winger Vinicius Junior.
Madrid suffered a 3-2 home defeat by Villarreal last weekend before the 2-0 first leg win over Chelsea, and Ancelotti admitted his team were not motivated enough.
On this occasion they arrived with the right mindset and on another day would have ended the first half several goals in front.
Gil made stunning saves to deny Karim Benzema, Rodrygo and Asensio.
Madrid were racking up the shots and, finally, their 26th effort of the night went in.
It came from an unlikely source, in veteran defender Nacho, who drove home from the edge of the box into the bottom corner.
With Cadiz's resistance broken, Madrid quickly added another. Fede Valverde carried the ball forward and fed Asensio, who finished clinically.
It was a satisfying evening for Ancelotti and his team, leaving them in good shape to continue their European adventure, aiming to finish the job in London and reach the semi-finals. Defeat leaves Cadiz 15th, four points clear of the drop zone.
Elsewhere Inaki Williams scored twice as Athletic Bilbao beat Real Sociedad 2-0 in the Basque derby, giving a fiery San Mames something to celebrate after the team's Copa del Rey semi-final exit.
La Real had the chance to tighten their grip on fourth place after Villarreal, sixth, stumbled to a 2-1 home defeat by relegation-battling Real Valladolid, but fell short in Bilbao.
Real Betis beat struggling Espanyol 3-1 to move fifth, three points behind Imanol Alguacil's side.