The veteran Polish forward, 36, reached 27 league goals for the season, although he finished behind Real Madrid's Kylian Mbappe on 31.
The Italian tactician, normally a picture of sideline serenity, could only shake his head as his injury-ravaged defense struggled against Barcelona's relentless assault at a sold-out Montjuic Olympic Stadium.
Paris Saint Germain head coach Luis Enrique made a bold prediction about tonight’s El Clasico in La Liga between Barcelona and Real Madrid, saying the Catalan Giants will easily defeat their arch nemesis.
Barcelona currently top the La Liga table, sitting four points ahead of second-placed Real Madrid. Carlo Ancelotti’s side must secure victory on Sunday to keep their hopes alive of overtaking their fierce rivals in the final three matches of the season.
Madrid were left licking their wounds after a Champions League quarter-final thrashing by Arsenal, and coach Ancelotti is poised to depart at the end of the season, but it could yet be with a major trophy in his hands.
Sorloth completed a hat-trick in the opening 11 minutes, the earliest in La Liga history, beating trebles netted by the 15th minute in 1929 and 1941 by Europa's Carles Bestit and Valencia's Mundo, respectively.
Barca lead the Spanish top flight by four points ahead of rivals and defending champions Real Madrid with four matches remaining.
After the Catalans scraped a comeback win at Valladolid on Saturday, Madrid survived a late Celta fightback to maintain the four-point gap ahead of next Sunday's Clasico.
Arda Guler broke the deadlock for Real shortly after the half-hour mark as the Turkish 20-year-old took a short corner for a one-two with Lucas Vazquez before dispatching an excellent left-footed shot from a tight angle through a gap between defenders.
With only a few matches remaining, the race for both the title and the Pichichi remains wide open. Lewandowski and Mbappe will push each other to the limit, knowing that every goal could be the difference between glory and disappointment.
But Robert Lewandowski came to the rescue at 1-1 as the 36-year-old netted twice to guide Barcelona to the win. The Polish striker also extended his tally at the top of LaLiga's scoring chart to 25 goals.
Mbappe's double took him to 33 strikes in 44 appearances across all competitions, the same number of goals as his idol managed in the 2009-10 campaign.
Carlo Ancelotti's side won an entertaining game at the Santiago Bernabeu to put pressure on their bitter rivals, who host Girona in a Catalan derby on Sunday.
Leading LaLiga with 63 points, Barca face Girona on Sunday after only two days rest following their 3-0 triumph over Osasuna and over the next 17 days they have six matches in all competitions.
Trailing by two goals, the Catalan giants mounted a remarkable turnaround, with Yamal netting in the 92nd minute and Ferran Torres sealing the victory in the 98th. The win saw Barca leapfrog Madrid, who had briefly taken the lead in the standings following their victory over Villarreal on Saturday.
Following Real's 2-1 comeback win at Villarreal, thanks to Kylian Mbappe's brace, the coach was concerned about his side's physical condition following Wednesday's shootout win over Atletico Madrid in the Champions League.
Ahead of the second leg of their Champions League last-16 tie at rivals Atletico Madrid on Wednesday, following a 2-1 win in the first, Ancelotti said that he was hopeful his goalkeeper Thibaut Courtois and defender Antonio Ruediger should be OK after missing Sunday's match with minor issues.
Kylian Mbappe and Vinicius Junior were both on target for Real Madrid as they beat Rayo Vallecano 2-1 on Sunday to pull level with La Liga leaders Barcelona.
The doctor had been working with different Barcelona sides since 2017, and began working with the men's football first team a few months ago.