Real Madrid travelled to in-form Rayo Vallecano on Wednesday evening looking to cut the gap on La Liga leaders Barcelona to four points.
The home side dominated proceedings in the first period, but could not make the breakthrough.
Real Madrid improved after the break, however, and led 20 minutes from time when Cristiano Ronaldo headed a Dani Carvajal cross into the back of the net.
James Rodriguez added a second for the visitors after 74 minutes as they ran out 2-0 winners.
Read how it all unfolded in Sports Mole's minute-by-minute live commentary of the action below.
RAYO: Cristian; Tito, Amaya, Ze Castro, Nacho; Fatau, Trashorras; Embarba, Kakuta, Bueno; Manucho
REAL: Casillas; Carvajal, Varane, Ramos, Marcelo; Modric, James, Kroos; Ronaldo, Benzema, Bale