Gareth Bale scored the only goal as Real Madrid moved into the top four of LaLiga with a hard-fought 1-0 win at bottom side Huesca.
The Wales international volleyed home after just eight minutes but the European champions were equally thankful to goalkeeper Thibaut Courtois as they claimed the points.
Huesca battled hard throughout and Gonzalo Melero spurned a great opportunity to level while Courtois kept out a number of fine efforts, including a last-gasp Moi Gomez free-kick.
Real were playing their first game since midfielder Luka Modric was awarded the Ballon d’Or, but the Croatian was substituted after 66 minutes of what proved a difficult afternoon in blustery conditions.
The visitors did start well, however. Huesca did have an early opportunity through Xabier Etxeita but Real soon took the lead.
Alvaro Odriozola picked out Bale with a perfectly lofted cross to the far post and the former Tottenham star delicately sidefooted in with his left boot.
Huesca responded well and went close to an equaliser after 17 minutes as Ezequiel Avila tested Courtois. It initially seemed the Huesca attack had broken down as David Ferreiro’s cross was half-cleared but Gomez seized possession to tee up Avila, and his firm strike was pushed away by Courtois.
Bale went close to doubling Real’s lead after 25 minutes with a curling shot from 25 yards but Aleksandar Jovanovic was equal to it and pushed over.
Despite that, Real struggled to convince and the game was short on chances.
It was not until after the break that either side seriously threatened again when Huesca missed a gilt-edged chance.
Melero, who had come on in the first half for the injured Juan Aguilera, seemed certain to score as he arrived unmarked less than six yards out to meet Ferreiro’s cross but he somehow headed wide.
Ferreiro went close himself 10 minutes later with a stinging effort from the edge of the area but Courtois palmed over.
A poor clearance from Jovanovic allowed Real the chance to break but the goalkeeper redeemed himself by getting his body in the way to deflect over Bale’s shot from a tight angle.
Huesca finished strongly but Marcos Llorente stopped a Serdar Gurler charge and an attempted volley from Jorge Pulido flew well over.
Cucho Hernandez also shot over on the turn before Courtois pushed over Gomez’s set-piece.
Stay updated with the latest news, gossip and football stories by following us @Football_P