Substitute Dani Ceballos came back to haunt his former side when he struck home a free-kick to give Real Madrid all three points against Real Betis.
Real Madrid left it late to defeat Real Betis 2-1 on Sunday evening, sending them up to fourth in the La Liga table in the process.
Los Blancos started the game brightly and took just 13 minutes to open the scoring. Luka Modric scored his first La Liga goal of the season with a vicious strike into the top corner when the ball rebounded into his path after Daniel Carvajal's initial effort was blocked.
Real Betis responded well to going behind and went on to dictate possession for the remainder of the half, but Madrid defended resolutely and created plenty of decent looking opportunities on the counter-attack. Neither side was able to find a breakthrough before the interval and Madrid finished the half a goal to the good.
The second-half followed a similar pattern, with Betis continuing to dominate. That dominance was eventually rewarded with just over 25 minutes left on the clock when Sergio Canales levelled up the tie.
He finished off a swift move with a cool finish under Keylor Navas and, after the goal was incorrectly ruled out through offside, a VAR referral overturned the decision.
Just when it looked as though Madrid would be coming away with a solitary point, they were able to claw their way back into the lead at the death. Substitute Dani Ceballos came back to haunt his former side when he struck home a free-kick which wrong-footed Pau Lopez in the Betis goal.
That proved to be that the last action of the game, with Madrid holding firm to earn all three points.
Key Talking Point
Real Madrid has been out of sorts and struggling for consistency all season, so Santiago Solari decided to switch things up by fielding a three at the back formation, which lends itself to more solidity in defense.
Whilst, for the most part, they did look much more solid in defense, the formation led to a number of other sacrifices across the pitch. They saw very little of the ball, lacked any sort of width and were restricted to infrequent counter-attacks.
Given Madrid's current situation, experimentation in the league should be welcomed. They were very fortunate to come away with a victory, but it does lift them back into the top four ahead of Alaves. Winning La Liga is beyond them, but securing a Champions League place should still be achievable - as long as they continue to develop and adapt.
Starting XI: Navas (6), Ramos (6), Varane (6), Nacho (6); Carvajal (6), Modric (7), Casemiro (6), Reguilon (5), Valverde (5); Vinicius (8*), Benzema (6).
Substitutes: Cristo (5), Ceballos (7), Diaz (N/A).
Star Man - Vinicius Jr.
Vinicius is clearly growing in confidence as the season goes on and he is more than warranting his place in the starting XI for Madrid.
He was their standout performer and lead the line admirably - especially in the second half when the experienced Karim Benzema was forced off through injury. He demonstrated impressive energy and drive, combining excellent forward play with determined pressing.
What stood out in particular was his decision making. Very rarely did he misplace a pass or hold on to the ball for too long, which indicates he is more than ready to maintain his place going forward.
Worst Player - Federico Valverde
Valverde's age and lack of experience needs to be taken into consideration, but he was undeniably poor on the night.
He tended to drift in and out of the game and he spurned two golden opportunities in the first half which would have put his side two goals to the good and out of sight.
Real Madridise back in action on Wednesday when they play out the second leg of their Copa del Rey fixture against Leganes. Following on from that, they host Sevilla in La Liga on Saturday.