Gareth Bale scored a sumptuous volley as Real Madrid's revival under Santiago Solari continued with a 1-0 win at La Liga's bottom club Huesca.
The Wales international netted the only goal after just eight minutes - his first La Liga strike in 802 minutes of action - driving home from Alvaro Odriozola's right-wing cross.
Huesca showed plenty of heart and should have taken a point but Gonzalo Melero somehow missed the target with a header from point-blank range.
The result thrusts Real up to fourth, five points adrift of leaders Barcelona, while Huesca remain bottom and winless since August.
Solari resisted the temptation to retain the side which swatted away Melilla in the Copa del Rey, with Bale retained ahead of Isco and Marco Asensio.
And the decision to keep faith with the Welshman paid dividends in the opening exchanges.
Odriozola's cross from the right evaded everyone, leaving Bale free to produce a fine low volley which zipped past goalkeeper Aleksandar Jovanovic.
The hosts were far from overawed however and almost levelled when Sergio Ramos' clearance only reached Moi Gomez, who teed up Ezequiel Avila but Thibaut Courtois was equal to his rising shot.
Bale almost doubled the lead in what was a rare Real attempt on goal, forcing Jovanovic into a breathtaking save to his left which he turned over the crossbar from the effort from 25 yards.
The onslaught from the home side continued into the second half and substitute Gonzalo Melero should have levelled but inexplicably headed wide from four yards out.
Pressure intensified on the Real goal and in stoppage time Courtois was forced to turn over Gomez's effort from range, before Dani Carvajal cleared off the line from Christian Rivera's miss-hit volley from the edge of the box.
Victory gives Solari his eighth win in nine games as Real boss, though Huesca can take many positives from their display against the European champions despite their relegation plight.
Man of the match - Raphael Varane
In a game where Real spent much of it on the back-foot soaking up pressure, the France international was an imperious presence at the heart of the back-line.
As Huesca's attacks continued to come from the left-flank, Varane cleaned up any second balls and though the hosts did have chances, he stemmed the flow and took the heat out of the game.
The managers
Francisco: "It was a very good match, we have competed very well, but we did not score and it hurts. We cannot blame the players.
"The pity was the success in front of the goal. We have players that last year had a great performance in the Second Division like Cucho and Melero.
"They had the chances, but they do not score. We trust that the goal will end up coming."
Santiago Solari: "There are games that take place like this and to overcome them is a test of character, the team has had a lot of character.
"We scored when we had to score, we defended well and compact. It's hard to play when there's such an atmosphere in favour of the locals and so much wind.
"It was not a match to remember but these games have to be won if you want to win the league."
What's next?
Real host CSKA Moscow in their final Champions League group game on Wednesday, while Huesca welcome Villarreal when they return to La Liga action next Sunday.