Real Madrid travelled to Valencia on Sunday looking to move five points behind Barcelona and Atletico Madrid ahead of the winter break.
Angel di Maria's curling effort handed Madrid the lead after 28 minutes, but Valencia were level before the interval courtesy of a header from Pablo Piatti.
Madrid were not finished in the first period, however, as Cristiano Ronaldo headed in a Di Maria cross to leave Los Blancos 2-1 ahead at the break.
Jeremy Mathieu levelled for Valencia just past the hour mark, but Jese Rodriguez won it for the away side late on.
Read how it all unfolded in Sports Mole's minute-by-minute live commentary of the action below.
VALENCIA: Guaita; Pereira, Ruiz, Mathieu, Feghouli; Parejo, Romeu; Bernat, Piatti, Cartabia; Jonas
REAL MADRID: Lopez; Arbeloa, Nacho, Ramos, Marcelo; Alonso, Modric; Di Maria, Isco, Ronaldo; Benzema