Lionel Messi scored twice and made another on the day he equalled Xavi's record for most Barcelona appearances.
Messi was playing for Barca for the 767th time and his curled double, along with goals from Antoine Griezmann and Oscar Mingueza, helped his side to a comfortable win over struggling Huesca.
Rafa Mir scored a controversial penalty for Huesca at the end of the first half, but Barca cruised to the victory.
They move second in La Liga, four points behind leaders Atletico Madrid.
The 33-year-old Argentina forward has won La Liga 10 times and the Champions League on four occasions among 34 trophies since he made his competitive debut as a substitute in a 1-0 away derby win against Espanyol on 16 October 2004.
Messi, whose contract expires at the end of this season, will break former Spain midfielder Xavi's record on Sunday if he plays in the league game at Real Sociedad.
Barcelona were knocked out in the last 16 of the Champions League by Paris St-Germain on Wednesday but still have hopes of winning a domestic league and cup double.
Against bottom-of-the-table Huesca, Messi scored after 13 minutes with a fine, left-footed curled effort from outside the penalty area before Griezmann added an almost identical goal 22 minutes later.
Huesca had lost 8-2 at the Nou Camp in 2018, but were given a fortunate way back into the game when Barca goalkeeper Marc-Andre ter Stegen was adjudged to have fouled Huesca's Mir.
The striker, on loan from Wolves, converted the penalty, but the hosts restored their two-goal lead when Mingueza headed his first goal for the club following Messi's cross from the left wing.
Mir had a chance to make it 3-2 but somehow chested the ball over the bar from only a few yards out. Messi grabbed his second goal of the night, and his 661st for Barcelona, with another curled, left-footed shot from distance in stoppage time.
The win takes Barcelona, who have already reached the Copa del Rey final, above Real Madrid and into second with 11 league games of the season remaining.
Latest Stories
-
Education Minister unveils new uniforms for basic schools
3 mins -
8th Ghana CEO Summit scheduled for May 27
10 mins -
Leaked intimate video has severely embarrassed me; I’m sorry – Serwaa Amihere
41 mins -
Poll results alone don’t constitute victory for any political party- Asiedu Nketia cautions NDC
2 hours -
Gyakie spills truth on her journey to fame
2 hours -
Energy sector CSOs challenge President Akufo-Addo to transparent value for money audit of SML contract
2 hours -
Plunderers of the State will face the music – Prof Jane Opoku-Agyemang promises
3 hours -
We don’t feel safe after inconsiderate conduct of Regional Minister – Ashanti ECG staff
3 hours -
Ghana needs urgent reset and inspiring leadership – Mahama
4 hours -
Asiedu Nketia cautions NDC: Don’t be complacent, election 2024 victory isn’t assured yet
5 hours -
Ongoing power crisis worst in the 4th Republic- Alhassan Suhuyini
5 hours -
Power challenges would be over in the next few days – Herbert Krapa
5 hours -
Full text: Acceptance speech by Prof Naana Opoku-Agyemang as Mahama’s running mate
5 hours -
Government’s fiscal adjustment on track – Report
5 hours -
Commercial drivers damn threats, unilaterally hike transport fares
5 hours