MADRID (AP) — Barcelona missed yet another chance to reach the top in the Spanish league after blowing a two-goal lead in a 3-3 draw at Levante on Tuesday.

Barcelona was up 2-0 and 3-2 but couldn't hold on, despite knowing that a win would have put them provisionally ahead of Atlético Madrid.

The draw left the Catalan club one point behind Atlético, which will host fifth-place Real Sociedad on Wednesday. Barcelona is one point ahead of defending champion Real Madrid, which visits 10th-place Granada on Thursday.

There will be two rounds remaining after the midweek matches.

Barcelona loses the head-to-head tiebreaker against both of its rivals. Madrid has the tie-breaking edge over Atlético. Sevilla also remains in contention for the title as it trails Atlético by six points ahead of its home game against mid-table Valencia on Wednesday.

Barcelona had already missed a few other opportunities to reach the top, including on Saturday when it was held at home by Atlético. It had already squandered a chance to take the lead at home when it lost to Granada two weeks ago in a postponed match.

Lionel Messi opened the scoring in the 26th minute with his league-leading 29th goal, hitting the net with a volley from inside the area after a cross by Jordi Alba that deflected on a defender and landed softly in front of the Argentina star.

Pedri González added to the lead in the 34th with a shot from near the penalty spot after a pass by Ousmane Dembélé, but the hosts needed only three minutes to even the match in the second half.

Levante, sitting in 13th place, pulled closer with a header by Gonzalo Melero in the 57th, and José Luis Morales equalized with a shot from inside the area in the 60th after a bad pass by Messi outside the Barcelona area.

Barcelona thought it was in control again when Dembélé put the team ahead again with a shot into the top of the net in the 64th, but Sergio León equalized again in the 83rd completing a low cross inside the area after American defender Sergiño Dest slipped while trying to fend off his opponent.

The Catalan club had been one of the hottest teams this year after getting off to a slow start this season amid political turmoil and financial struggles prompted in part because of the coronavirus pandemic. It has won only five points in its last four matches, though.

Seeking its third league title in four seasons, Barcelona was as low as 13th in the standings, back in the 10th round. It only made it back to the top three in the 18th round.

This is Barcelona’s first season under Dutch coach Ronald Koeman, who was back on the bench on Tuesday after a two-match suspension for using inappropriate language while complaining with a referee.

Barcelona next hosts eighth-place Celta Vigo. It visits last-place Eibar in the final round.

___

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

___

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