MADRID - Lionel Messi's 15th La Liga hat-trick lit up a nerve-jangling nine-goal thriller as Barcelona survived Javier Mascherano's red card to win 5-4 at Deportivo Coruna to go three points clear at the top on Saturday.
Messi's latest masterclass overshadowed Real Madrid's drab 2-0 triumph at home to promoted Celta Vigo. Gonzalo Higuain and Cristiano Ronaldo (penalty) scored the goals that lifted Jose Mourinho's team to fourth place, eight points behind arch rivals Barca.
World Player of the Year Messi, who is expecting the imminent birth of his first child, has notched 71 goals for club and country in 2012. That leaves him only four short of the record set by Brazilian great Pele in 1959.
The Argentine has 11 goals in eight La Liga outings this season, two more than Ronaldo. Unbeaten Barca have 22 points, three ahead of Atletico Madrid who play their game in hand at Real Sociedad on Sunday (1930 GMT).
"He (Messi) is off to the hospital now for a happy occasion as his son is on the way," Barca sporting director Andoni Zubizarreta told Spanish television.
Malaga are third on 17 points after Joaquin made amends for fluffing a penalty by grabbing the winner in a 2-1 victory at home to Real Valladolid.
On a day full of late drama, Valencia got their stuttering season back on track when they snatched a 3-2 win over struggling Athletic Bilbao who were leading 2-1 when they had Ander Herrera sent off midway through the second half.
Barca looked to be cruising to a seventh win of the campaign when they raced into a three-goal lead after 18 minutes at Depor's Riazor stadium.
Jordi Alba sped on to a Cesc Fabregas pass to score in the third minute, Cristian Tello added a second and then Messi smashed in his first of the night after Fabregas's clever backheel.
The home side pulled two goals back against the run of play through Pizzi (penalty) and Alex Bergantinos before Messi made the most of another Fabregas assist to make it 4-2 at the break.
In a frenetic start to the second half Depor midfielder Pizzi curled in a stunning 47th-minute free kick and Mascherano was harshly shown a second yellow card two minutes later.
Barca coach Tito Vilanova reacted by replacing Fabregas with Xavi before Messi, who also struck a free kick against the post, appeared to have killed the game when he made it 5-3 with a trademark run and clinical finish in the 77th minute.
A bizarre own goal from Barca full back Jordi Alba, when he lobbed keeper Victor Valdes from inside his own penalty area, gave Depor fresh hope but they were unable to make some late pressure count.
"We could have killed off the game in the first half but Deportivo are strong when they are playing at home and their fans get behind them," said Barca playmaker Andres Iniesta.
"We are going away with the feeling of having got through a tough match and we will learn from that."
Real, who are clawing their way up the table after a poor start to the defence of their title, took an 11th-minute lead at the Bernabeu thanks to a Higuain cross-shot from the left that looped over Celta goalkeeper Sergio and into the net.
The home team struggled to break through Celta's well-drilled defence and needed a 67th-minute Ronaldo penalty, awarded for a foul on Mesut Ozil, to double the lead.
The visitors came close to scoring late on but Real keeper Iker Casillas produced a fine save to keep out South Korea striker Park Chu-young's header.
"We need to stay on this path and try to reduce the gap to the leaders," said Real defender Sergio Ramos.
"Our confidence is huge and the league is very long. Until there is no mathematical champion, which won't be for a long time, Madrid will be up there fighting."
Valladolid took an early lead at Malaga through Angola forward Manucho who was then sent off nine minutes from time after picking up a second yellow card.
Promising Spain under-21 playmaker Isco levelled before halftime before Joaquin, a former Spain winger, struck in the 88th minute to make up for his penalty miss three minutes earlier.
An Aritz Aduriz double either side of a Roberto Soldado penalty put Bilbao ahead at the break at Valencia's Mestalla arena.
After Herrera's dismissal for violent conduct, Alberto Costa levelled in the 88th minute and substitute Nelson Valdez nodded a 90th-minute winner.
Valencia are eighth on 11 points while Bilbao are 16th.