Lionel Messi set up two goals to help Barcelona win 2-0 at Osasuna and close the gap with Spanish league leader Atlético Madrid to two points on Saturday.

Jordi Alba drilled a shot from a tight angle past goalkeeper Sergio Herrera in the 30th minute after Messi played him clear down the left flank with a chipped pass behind the defensive line. It was the defender’s fifth goal of the season.

More Images
Barcelona's Jordi Alba celebrates after scoring his side's first goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Lionel Messi set up two goals to help Barcelona win 2-0 at Osasuna and close the gap with Spanish league leader Atlético Madrid to two points on Saturday.

Barcelona's Frenkie de Jong, right, vies for the ball with Osasuna's Unai Garcia, center, during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Marc-Andre ter Stegen made two saves for Barcelona in the first half when Osasuna threatened on the counterattack.

Barcelona's Lionel Messi, right, vies for the ball with Osasuna's Jonathan Calleri during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Lionel Messi, right, vies for the ball with Osasuna's Jonathan Calleri during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Ousmane Dembele reacts during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Ousmane Dembele reacts during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Moriba Kourouma Kourouma, left, celebrates with his teammate after scoring his side's second goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Moriba Kourouma Kourouma, left, celebrates with his teammate after scoring his side's second goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Moriba Kourouma Kourouma celebrates with his teammates after scoring his side's second goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Moriba Kourouma Kourouma celebrates with his teammates after scoring his side's second goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Substitute Ilaix Moriba put the result beyond doubt with seven minutes left. The 18-year-old midfielder, who debuted two weeks ago, scored his first goal for the team when he took a pass from Messi and drilled the ball into the corner of the net.

Barcelona's Jordi Alba celebrates after scoring his side's first goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Jordi Alba celebrates after scoring his side's first goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Marc-Andre ter Stegen made two saves for Barcelona in the first half when Osasuna threatened on the counterattack.

Barcelona extended its undefeated run to 16 league matches to keep the pressure on Atlético a day before it hosts third-place Real Madrid in a Spanish capital derby. Atlético will also have one more game to play after this round.

More AP soccer: https://apnews.com/hub/soccer and https://twitter.com/AP_Sports

Barcelona's Frenkie de Jong, right, vies for the ball with Osasuna's Unai Garcia, center, during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Frenkie de Jong, right, vies for the ball with Osasuna's Unai Garcia, center, during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Lionel Messi, right, vies for the ball with Osasuna's Jonathan Calleri during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Lionel Messi, right, vies for the ball with Osasuna's Jonathan Calleri during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Ousmane Dembele reacts during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Ousmane Dembele reacts during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Moriba Kourouma Kourouma, left, celebrates with his teammate after scoring his side's second goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Moriba Kourouma Kourouma, left, celebrates with his teammate after scoring his side's second goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Moriba Kourouma Kourouma celebrates with his teammates after scoring his side's second goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)

Barcelona's Moriba Kourouma Kourouma celebrates with his teammates after scoring his side's second goal during the Spanish La Liga soccer match between Osasuna and FC Barcelona at El Sadar stadium in Pamplona, Spain, Saturday, March 6, 2021. (AP PhotoAlvaro Barrientos)