Gareth Bale sent Real Madrid fourth in La Liga as his goal earned Los Blancos a 1-0 win at bottom of the table Huesca.
The Welshman had gone 10 games without a goal in the division but volleyed home neatly from Alvaro Odriozola’s cross in the eighth minute.
Gonzalo Melero nodded wide for Huesca while Thibaut Courtois tipped Moi Gomez’s free-kick over in injury time as the minnows nearly equalised.
Dani Carvajal headed Christian Rivera’s attempt off the line in the final stages.
Madrid win again under Santiago Solari, eight from nine in all competitions, but they are not playing particularly well.
Los Blancos sit five points behind leaders and champions Barcelona after 15 games.