Match ends, Barcelona 3, Leganés 1.
Lionel Messi scored a hat-trick as runaway leaders Barcelona equalled the La Liga record of 38 games unbeaten with victory over Leganes.
Messi curled home a fantastic 30-yard free-kick before latching onto Philippe Coutinho's through ball to make it 2-0.
Nabil el Zhar pulled one back but Messi scored from Ousmane Dembele's pass to complete a 45th career hat-trick.
Barca, who are seven games from an unbeaten La Liga season, are now 12 points above Atletico Madrid.
They equalled Real Sociedad's record of 38 matches unbeaten across 1978-79 and 1979-80 - and are now targeting becoming the first team to go unbeaten in a 38-game season in Spain's top flight.
Atletico can narrow the gap back to nine points when they visit Real Madrid on Sunday (15:15 BST).
Barca are next in action on Tuesday at Roma in the Champions League quarter-final second leg, defending a 4-1 advantage from the first leg at the Nou Camp.
Messi's free-kick means he is the first player to score from outside the box in six consecutive La Liga games since at least 2003-04 - when Opta started recording detailed statistics.
- 1ter Stegen
- 2Nélson Semedo
- 20RobertoSubstituted forAlbaat 74'minutesBooked at 84mins
- 21André Gomes
- 11DembéléSubstituted forD Suárezat 88'minutes
- 14CoutinhoBooked at 78minsSubstituted forIniestaat 81'minutes
- 6D Suárez
- 20ZalduaBooked at 79mins
- 22SiovasBooked at 51mins
- 21PérezBooked at 76minsSubstituted forGuerreroat 78'minutes
- 8Appelt PiresBooked at 55mins
- 10El Zhar
- 17ErasoSubstituted forBrasanacat 60'minutes
- 7N AmrabatSubstituted forBeauvueat 45'minutes
- 2Román Triguero
- Ricardo de Burgos Bengoetxea
- Shots on Target
Second Half ends, Barcelona 3, Leganés 1.
Corner, Barcelona. Conceded by Unai Bustinza.
Foul by Lionel Messi (Barcelona).
Darko Brasanac (Leganés) wins a free kick in the attacking half.
Attempt blocked. Claudio Beauvue (Leganés) right footed shot from the centre of the box is blocked. Assisted by Gabriel Pires.
Substitution, Barcelona. Denis Suárez replaces Ousmane Dembélé.
Goal! Barcelona 3, Leganés 1. Lionel Messi (Barcelona) left footed shot from very close range to the bottom left corner. Assisted by Ousmane Dembélé.
Jordi Alba (Barcelona) is shown the yellow card for a bad foul.
Foul by Jordi Alba (Barcelona).
Joseba Zaldua (Leganés) wins a free kick on the right wing.
Attempt missed. Claudio Beauvue (Leganés) left footed shot from outside the box is too high. Assisted by Miguel Ángel Guerrero.
Foul by Luis Suárez (Barcelona).
Unai Bustinza (Leganés) wins a free kick in the defensive half.
Substitution, Barcelona. Andrés Iniesta replaces Philippe Coutinho.
Attempt missed. Luis Suárez (Barcelona) left footed shot from the centre of the box is too high.
Ivan Rakitic (Barcelona) wins a free kick in the defensive half.
Foul by Darko Brasanac (Leganés).
Joseba Zaldua (Leganés) is shown the yellow card for a bad foul.
Jordi Alba (Barcelona) wins a free kick in the defensive half.