Gareth Bale got his first taste of being on a winning side at the Santiago Bernabeu as Real Madrid moved to within two points of Barcelona and Atletico Madrid with a 2-0 win over Malaga on Saturday.
After Angel di Maria's intended cross had found the back of the net to give Madrid the lead just after half-time, the Welshman was introduced for the final 13 minutes on his return from a thigh injury.
And it was Bale who was brought down by Weligton in stoppage time to allow Cristiano Ronaldo to seal the three points from the penalty spot.
It was a much improved all round performance from Madrid, who were only denied a far more comfortable margin of victory due to a series of wonderful saves by Malaga keeper Willy Caballero.
"The game today was good, I liked the attitude of the team. We defended well, were more aggressive and compact," said Madrid boss Carlo Ancelotti.
"We had opportunities to score more goals and I hope in the games to come we can maintain the same intensity."
The victory was a fine start to a hugely important week for Madrid as they host Juventus in the Champions League on Wednesday before facing Barcelona at the Camp Nou on Saturday.
Bale had been kept in reserve from the start due to his lack of match practice, but Ancelotti believes he will be ready to play 90 minutes later in the week.
"He could start, it is an option that we have, I don't think he will have any problems playing from the start. We will see what happens, but we have three days to make a decision."
And Ancelotti also confirmed that the French international duo of Karim Benzema and Raphael Varane should be fit in time to face Juventus.
In Benzema's absence due to a calf injury, Alvaro Morata started up front and the Spanish under-21 international was highly involved in the first period as Madrid did everything but score.
Ronaldo saw a curling effort come off the top of the bar after just seven minutes and then ought to have opened the scoring when he skewed wide with just Caballero to beat.
Morata headed straight at the Malaga keeper from Di Maria's cross and Caballero was again called into action by Ronaldo as the pressure continued to build.
The opener did finally arrive less than 60 seconds after the interval in somewhat fortuitous circumstances as Ronaldo just failed to get on the end of Di Maria's cross but the ball sailed into the far corner in any case.
Isco should have doubled the advantage moments later against his old club, but Caballero got down well to parry his effort to safety.
Morata then saw a glancing header flash between Ronaldo and the far post from Isco's corner and the Portuguese saw a free-kick clawed away by Caballero as the hosts looked to put the game to bed.
And the hosts were nearly made to pay for their profligacy when substitute Bobley Anderson's fierce effort flew inches past Diego Lopez's left hand post with 13 minutes remaining.
Ronaldo was denied again by Caballero when it seemed easier to score four minutes later and the Argentine produced his best save yet seconds afterwards to turn Jese Rodriguez's sweetly struck effort behind.
However, he was powerless to stop Ronaldo's perfect penalty deep into stoppage time after Bale had induced a reckless challenge from Weligton inside the area.