Barcelona beat Liganes 3-1 in the 31st round of the Spanish league and set a record in the history of the competition.
The trio was Messi, who scored a hat-trick in the game to reach the 40th hater in his career with Barca and 45 overall.
Barcelona reached the 38th game without a league defeat to equalize the record for Real Sociedad in the 1979-80 season.
The next game against Valencia may see this figure break. The last defeat was against Malaga on April 8, 2017, a year ago.
In the 27th minute, the Argentinian flea added the second goal with a shot in the penalty area 32 minutes into the free kick.
Moroccan Nabil Zahar narrowed the gap for Lijanis from a powerful shot on the edge of the box, and settled on the right of goalkeeper Terje Steigen in the 68th minute.
But the visitors' hopes of return were quickly shot by Messi with a third goal in the 87th minute, bringing the team to the 79th lead.
Stop Balancet Lijanis 36 points to 14th.