Rafa Mir scored a goal in each half to end the visitors' four-game winless streak and leave the team in 18th place, just a point from safety.
European football matchday: Barcelona aim to clinch three points against Huesca; Liverpool take on Wolves
Liverpool have taken only 12 points out of the last 42. Winning a seventh European Cup may be their best chance of qualifying next season as they are eight points from the top four.
LaLiga: Atletico Madrid bounce back with 2-0 win over Villarreal; Real Valladolid draw 1-1 at Celta Vigo
An own goal from Alfonso Pedraza and Joao Felix's powerful strike gave Atletico a precious win after a wobble which had allowed Barcelona and Real Madrid to gain ground in the title race.
LaLiga: Raphael Varane double leads Real Madrid comeback win at Huesca; Sevilla beat Getafe as coaches clash
The victory moved Real Madrid back into second place in the standings, closer to league leader Atlético Madrid.
European football weekend: Manchester City at Anfield, Le Classique in Ligue 1 and Mesut Ozil in Istanbul derby
What to look forward to in European football this weekend from Premier League, LaLiga, Bundesliga, Serie A and Turkey.
Elche took the lead through Raul Guti in the fourth minute, but Getafe rallied with goals by Marc Cucurella in the 39th minute, Jaime Mata in the 69th, and Angel Luis Rodriguez in the 86th.
LaLiga: Barcelona beat Huesca in Lionel Messi's 500th game; Atletico Madrid back on top after 1-0 win over Alaves
Although Ronald Koeman's side began a potentially season-defining run of four consecutive away matches with a comfortable win, they remain a distant 10 points behind Atletico in fifth having played a game more.
Messi has not played since a 3-0 win over Valladolid on 22 December, when he scored his 644th career goal for Barcelona to overtake Pelé’s all-time scoring milestone for their clubs.
Athletic Bilbao spoiled Huesca's party by 2-0 and sent the Aragonese club to the bottom of the Spanish league.
European football matchday: Union Berlin to play Borussia Dortmund at home; Athletic Bilbao look to end losing run against Huesca
Can new Borussia Dortmund coach Edin Terzic pass a test that Bayern Munich failed? That's the question as Dortmund visits Union Berlin
LaLiga: Osasuna come from behind to draw 1-1 with Huesca, keep visitors winless since return to top-flight
Osasuna came from behind to draw with Huesca 1-1 on Friday, keeping the visitors winless since their return to the Spanish league.
LaLiga: Barcelona endure 1-1 draw against Alaves to remain winless in four matches; Eden Hazard inspires Real Madrid's win
Hazard has had a terrible time with injuries since joining Madrid for 100 million euros ($113 million) from Chelsea in 2019 but the Belgian will hope his stunning strike from distance at the Alfredo di Stefano can kick-start his career in Spain.
Mikel Oyarzabal scored twice, including one from a penalty, before Portu and Alexander Isak rounded off an impressive victory after Rafa Mir had briefly pulled Huesca level.
Karim Benzema, the heart of Madrid’s title run last season, set up Federico Valverde for the 14th-minute opener, and pressured Emerson into scoring an own goal
LaLiga: Lionel Messi-less Barcelona held by stoic Huesca; second-placed Atletico Madrid brush aside Celta Vigo
Barcelona's 11-point advantage over Atletico Madrid became nine on Saturday as Lionel Messi was left out of their goalless draw with Huesca and Gerard Pique watched on television with a bowl of prawns.
LaLiga: Karim Benzema saves Real Madrid's blushes with late winner against Huesca; Zidane's son Luca handed start
Benzema, subject to rumours he may leave Madrid in the summer for Manchester United, struck with a fine curling finish the to snatch the three points at a sparsely populated Santiago Bernabeu.
LaLiga: Spanish football clubs deny six players permission to play for Catalonia in friendly against Venezuela
In total six players were denied permission to be part of the Catalonia squad, which includes big names such as Barcelona defender Gerard Pique and former Barcelona great Xavi Hernandez
LaLiga: Real Madrid, Barcelona expected to rest key players ahead of El Clasico double-header, Atletico aim to build on Juventus win
This weekend, Barca travel to fourth-placed Sevilla on Saturday and Madrid to Levante on Sunday, when priorities, rest and rotation will all be high on the agenda again
La Liga: Wissam Ben Yedder's late goal rescues a point for Sevilla against Leganes; Valencia edge past Huesca
Mikel Vesga's header looked set to earn Leganes a valuable victory but Wissam Ben Yedder sneaked in to score in the 91st minute and earn Sevilla a 1-1 draw.
La Liga: Lionel Messi slams 31st league hat-trick to send Barcelona three points clear at top; Sevilla climb to second
Lionel Messi has scored five goals in two league games since finishing only fifth in the voting for the Ballon d'Or earlier this month.