Messi ties Xavi's record as Barcelona cuts Atletico's lead in La Liga

For his 767th match, Messi was honoured by Barcelona with a large image behind one of the goals showing him embracing Xavi as the players looked forward and pointed upward.

Lionel Messi

Lionel Messi of Barcelona celebrates after scoring the side's fourth goal during a La Liga match against SD Huesca at Camp Nou on Tuesday.   -  Getty Images

Lionel Messi scored twice as he tied Xavi Hernandez's record of most appearances for Barcelona on Monday, putting the side within four points of the La Liga lead after beating last-placed Huesca 4-1.

For his 767th match, Messi was honoured by Barca with a large image behind one of the goals showing him embracing Xavi as the players looked forward and pointed upward. The banner included the words "767 matches" and “touching the sky.”

“It’s incredible,” Barcelona coach Ronald Koeman said. “His impact on this team is enormous. It’s amazing what he has done for this club up until now.”

Antoine Griezmann and Oscar Mingueza also scored at the Camp Nou Stadium as the Catalan club won its fourth straight league match to increase the pressure on leader Atletico Madrid.

Atletico, seeking its first league title since 2014, had a comfortable lead until recently, having won only two of its last six league games. It was held to 0-0 at Getafe on Saturday.

Diego Simeone's team will visit Barcelona in May.

“We always said we wouldn’t give up,” Barcelona midfielder Pedri Gonzalez said. “We have a good squad that can keep fighting for this title and we have momentum on our side.”

READ | Liverpool beats Wolves 1-0, Patricio survives head injury

Barcelona, coming off elimination by Paris Saint-Germain in the Champions League last 16, was in control from the start on Monday.

Messi scored in each half for his 130th double in the league. He opened the scoring with a shot into the top corner after a nifty one-touch to clear a defender just outside the area in the 13th minute, then closed the scoring with another shot from outside the area in the 90th.

The Argentine playmaker has 21 league goals, three more than Atletico's Luis Suarez at the top of the scoring list.

ALSO READ | Ronaldo return to Real Madrid 'possible', says Zidane

Barcelona kept pressing and nearly added to the lead when Jordi Alba hit the crossbar in the 33rd, and a couple of minutes later Griezmann added his goal with a well-struck curling shot into the top corner past Huesca goalkeeper Alvaro Fernandez.

Huesca pulled one back through a penalty kick earned after a breakaway in first-half stoppage time, converted by forward Rafa Mir.

Then Mingueza scored his first goal for Barcelona with a header off a cross by Messi in the 53rd.

Huesca, which has won only one of its last six matches, stayed four points from safety.