Barcelona won 1-0 against relegation-battling Huesca on Sunday as Lionel Messi became the first foreign player to make 500 appearances in La Liga, while an injury-time Luis Suarez goal secured leaders Atletico Madrid victory against Alaves.

Messi returned for Barca after missing the final game of 2020 with an ankle injury and swung in a cross for Frenkie de Jong, who tucked home for the only goal on 27 minutes.

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.

Although Barca dominated possession and created ample chances, Huesca goalkeeper Alvaro Fernandez produced several fine saves to keep the hosts in touch.

After De Jong’s opener Messi was denied a second just before half-time when Fernandez superbly clawed away his free-kick heading towards the top corner.

The Argentine was again thwarted by the legs of Fernandez in the second half after combining well with Pedri, moments after Marc-Andre ter Stegen reacted sharply to keep out Rafa Mir’s inventive back-heel.

That was a rare threat from Huesca who have now won just once in 17 tries this season but had taken points off most visitors to their Estadio El Alcoraz so far, including Atletico in September.

Meanwhile, earlier in the day, Suarez struck a 90th-minute winner for Atletico as they defeated 10-man Alaves 2-1 to move back above Real Madrid at the top.

Marcos Llorente broke the deadlock for Atletico at Mendizorroza shortly before half-time with a deflected strike from just outside the area.

Diego Simeone’s side appeared to have the game under control when Alaves defender Victor Laguardia was sent off on the hour following a VAR review for chopping down Thomas Lemar as the Frenchman ran towards goal.

Florian Lejeune headed against the post for Alaves before a spectacular own goal on 84 minutes from Felipe threatened to cost Atletico two vital points, the Brazilian centre-back drilling beyond Jan Oblak as he attempted to hack clear an attempted cross.

However, Suarez secured Atletico’s fourth consecutive win in the final minute as the Uruguayan tapped in from close range after the ball was slotted across goal by substitute Joao Felix.

“The best thing is how the team finished, not getting nervous, just playing. And the goal was a great goal,” said Simeone.

Atletico climbed two points clear of Real Madrid and have two games in hand on the defending champions.

“The takeaway from this is to continue on the same path,” added Simeone.

Athletic Bilbao sacked coach Gaizka Garitano following a 1-0 home win over Elche, with reports in Spain linking former Barcelona boss Ernesto Valverde to the vacant job.

Real Sociedad lost more ground on the top two after they could only manage a 1-1 draw at home to struggling Osasuna, while teenager Bryan Gil scored both goals in Eibar’s 2-0 defeat of Granada.