Dani Olmo and Ferran Torres struck to earn Barcelona a 2-0 win at Las Palmas on Saturday which took it back to the top of La Liga.
After Atletico Madrid beat Valencia to temporarily take pole position, the Catalans replaced them with a narrow victory on the road and sit one point ahead of the Rojiblancos.
Substitute Olmo produced a fine finish before Torres drilled home to settle the game and earn Barca revenge for a shock home defeat by Las Palmas earlier in the season.
AS IT HAPPENED: Las Palmas 0-2 Barcelona Highlights
Champion Real Madrid, third, can pull level on points with Barcelona if it beats Girona at home on Saturday.
Barca was inaccurate in attack in a tight first half, unable to find the quality it needed to unpick the hosts’ defence.
Flick took action at the break and brought on playmaker Dani Olmo in place of the quiet Fermin Lopez.
The Spain international’s first contribution was a sloppy pass that flew out of play but he quickly found his focus.
Lamine Yamal skipped forward and slipped the ball to Olmo, who showed good footwork to find space in the box and finish.
Las Palmas pushed forward in search of an equaliser and former Barca striker Sandro Ramirez lashed an effort narrowly wide of Wojciech Szczesny’s post.
At the other end Yamal burst into life, increasingly threatening, and crossed for the league’s top scorer Robert Lewandowski, who directed his header straight at Jasper Cillessen.
Lewandowski fired over after good work by Alejandro Balde as the Polish veteran began to enjoy the extra space left at the back by the hosts.
MORE FROM LA LIGA 2024-25: Real Madrid can’t afford to drop more points, Ancelotti says
Las Palmas appealed for a penalty when a shot struck the back of Eric Garcia’s arm in the box but VAR showed there was an offside in the build-up.
Eight minutes of stoppage time were added on which gave Las Palmas heart but instead it was Barcelona which struck.
A loose pass at the back was picked up by Raphinha, who fed Torres to rifle past Cillessen and seal Barcelona’s win.
Defeat leaves Las Palmas 17th, level on points with Valencia, 18th, in the relegation zone.