The Italian, who won the 500th game of his coaching career, praised Gareth Bale for his goalscoring performance and the whole team for their focus throughout
Barcelona and Atletico Madrid have a game in hand over the Blancos but, for 24 hours at least, the capital-based club sit level on 50 points with their competitors.
The victory was a personal landmark for the Italian, which was the 500th competitive win of his coaching career, and he was in a celebratory mood afterwards.
"This was a good opportunity to go joint-first for the night," Ancelotti told reporters. "At least we will sleep well tonight.
"Gareth Bale played well. The whole team played well for the whole game. There was a lot of concentration. We defended well. We are happy because these can look like easy matches before then become a problem."
Ancelotti's 24 wins in La Liga follow his 49 triumphs in Ligue 1, 67 victories for Chelsea in England and bumper 360 sucesses in Serie A.
Real Madrid travel to face Espanyol in the first-leg of their Copa del Rey quarter-final on Wednesday.