Ivan Rakitic scored a second-half winner as Barcelona defeated Athletic Bilbao 1-0 Tuesday to get back in front of Real Madrid in the Spanish league.

Rakitic broke the deadlock in the 71st minute to move Barcelona three points ahead of Madrid, which on Wednesday hosts relegation-threatened Mallorca. A win will give the lead back to Madrid because it has better tiebreakers.

Rakitic scored less than 10 minutes after coming off the bench, firing a right-foot shot into the corner after an assist by Lionel Messi. It was Rakitic’s first goal for Barcelona since March 2019.

Barcelona's Lionel Messi, center, vies for the ball with Athletic Bilbao's Inigo Cordoba, center left, during the Spanish La Liga soccer match between FC Barcelona and Athletic Bilbao at the Camp Nou stadium in Barcelona, Spain, Tuesday, June 23, 2020. (AP PhotoJoan Monfort)

Barcelona's Lionel Messi, center, vies for the ball with Athletic Bilbao's Inigo Cordoba, center left, during the Spanish La Liga soccer match between FC Barcelona and Athletic Bilbao at the Camp Nou stadium in Barcelona, Spain, Tuesday, June 23, 2020. (AP PhotoJoan Monfort)

Messi, who turns 33 on Wednesday, again wasn’t able to score his milestone 700th career goal for club and country. He came close twice with shots that just missed the target late in the second half.

Barcelona was coming off a 0-0 draw at Sevilla, a result that allowed Madrid to take over the lead for the first time since the league resumed after the pandemic break.

Athletic, which has won only one of its three matches after the break, dropped to 10th place.

Barcelona's Ivan Rakitic, second right, celebrates with his teammate Lionel Messi after scoring the opening goal during the Spanish La Liga soccer match between FC Barcelona and Athletic Bilbao at the Camp Nou stadium in Barcelona, Spain, Tuesday, June 23, 2020. (AP PhotoJoan Monfort)

Barcelona's Ivan Rakitic, second right, celebrates with his teammate Lionel Messi after scoring the opening goal during the Spanish La Liga soccer match between FC Barcelona and Athletic Bilbao at the Camp Nou stadium in Barcelona, Spain, Tuesday, June 23, 2020. (AP PhotoJoan Monfort)

ATLÉTICO THRIVING

Atlético Madrid extended its good run after the pandemic break with a 1-0 win at Levante.

An own-goal by Bruno González in the 15th minute gave Atlético its third straight win and moved Diego Simeone's team back into third place in the standings. Atlético is two points ahead of Sevilla, which had temporarily moved in front after a 2-2 draw at Villarreal on Monday.

Barcelona's Ivan Rakitic, right, celebrates after scoring the opening goal during the Spanish La Liga soccer match between FC Barcelona and Athletic Bilbao at the Camp Nou stadium in Barcelona, Spain, Tuesday, June 23, 2020. (AP PhotoJoan Monfort)

Barcelona's Ivan Rakitic, right, celebrates after scoring the opening goal during the Spanish La Liga soccer match between FC Barcelona and Athletic Bilbao at the Camp Nou stadium in Barcelona, Spain, Tuesday, June 23, 2020. (AP PhotoJoan Monfort)

Atlético was sixth when the league was interrupted by the coronavirus, but its winning run — coupled with a series of poor results by its rivals — allowed the team to quickly get back into the Champions League places.

“Happy for another victory and for these very important three points that take us closer to our goal of qualifying for the Champions League,” Atlético midfielder Marcos Llorente said.

González found his own net while trying to intercept a cross from Llorente to Diego Costa inside the area.

Barcelona's Lionel Messi kicks the ball during the Spanish La Liga soccer match between FC Barcelona and Athletic Bilbao at the Camp Nou stadium in Barcelona, Spain, Tuesday, June 23, 2020. (AP PhotoJoan Monfort)

Barcelona's Lionel Messi kicks the ball during the Spanish La Liga soccer match between FC Barcelona and Athletic Bilbao at the Camp Nou stadium in Barcelona, Spain, Tuesday, June 23, 2020. (AP PhotoJoan Monfort)

Atlético is six points clear of fifth-place Getafe, which drew 1-1 at Valladolid.

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

Tales Azzoni on Twitter: http://twitter.com/tazzoni