Karim Benzema's hat-trick for Real Madrid against Almeria saw him pass Hugo Sanchez as the fourth-highest goalscorer in La Liga history with 236.
Benzema scored two close-range finishes after cutbacks from Brazil wingers Vinicius Junior and Rodrygo.
Lucas Vazquez was fouled by Largie Ramazani and Benzema converted from the spot to complete his first-half treble.
Second-placed Real Madrid later saw Barcelona restore their 11-point lead at the top, beating Real Betis 4-0.
Carlo Ancelotti's side got back to winning ways before Real's Champions League semi-final against Manchester City on 9 May.
Only Lionel Messi (474), Cristiano Ronaldo (311) and Zarra (252) have scored more goals in the Spanish top flight than the 35-year-old former France forward.
Almeria pulled a goal back in the dying seconds of the first half, with Ramazani atoning after conceding the penalty by crossing into the six-yard box for Lazaro Vinicius to finish.
Two minutes after the restart, Rodrygo fired a screamer into the top corner from outside the box.
Substitute Lucas Robertone headed in from a Francisco Portillo cross just after the hour mark as relegation-threatened Almeria put up a fight against the defending champions, but were ultimately overpowered.
Eduardo Camavinga and Rodrygo had diving headers ruled out for offside with Los Blancos unable to get their fifth goal of the thrilling contest.
Latest Stories
-
‘It’s unfortunate we had to protect the public purse from Akufo-Addo’ – Ablakwa on ORAL Team’s mission
7 minutes -
Congo lawyers say Apple’s supply chain statement must be verified
33 minutes -
Stampede in southwestern Nigerian city causes multiple deaths
57 minutes -
Tens of thousands without water in Mayotte as curfew brought in
1 hour -
ORAL: We won’t witch-hunt, we’ll focus on transparency, not revenge – Ablakwa
2 hours -
Attempted robbery: Accused claims he carried cutlass for protection
2 hours -
Excavator operator jailed for stealing
2 hours -
African fans age-shame me for putting on some outfits – Tiwa Savage
2 hours -
Tiwa Savage criticised by female fans for stance on cheating in relationships
2 hours -
Bank of England expected to hold interest rates
3 hours -
Congo river boat sinks killing at least 22
3 hours -
Nigeria approves Shell’s $2.4 billion asset sale to Renaissance
3 hours -
Embattled Liberian speaker questioned by police over parliament fire
4 hours -
‘I won’t be a judge in my own court; ORAL is about protecting public purse’ – Ablakwa
4 hours -
Bawumia joins thousands in Kumasi for burial prayers for Ashanti Regional Imam
4 hours