Ten-man Barcelona conceded a late goal to draw at Granada 1-1 after Dani Alves set up the opener in his first league match since returning to the club.

The 38-year-old Alves curled in a long ball for Luuk de Jong to steer home with a header in the 57th.

But Granada poured forward after teenager Gavi Páez got his second booking with 10 minutes left. Antonio Puertas scored the 89th-minute equalizer with Barcelona hemmed in in its box.

Alves, who helped Barcelona win 23 titles from 2008-16, started his second stint on Wednesday as third-tier side Linares was beaten 2-1 in the Copa del Rey.

Barcelona was left in sixth place after missing the chance to climb into third and the Champions League spots.

“We are angry and frustrated because we let two vital points slip away,” coach Xavi Hernández said.

“The sending off obviously changed the match, but we were already making too many mistakes, losing too many silly balls. It may be due to the lack of experience of our young players, but it is proving difficult for us to maintain possession when we need to.”

Barcelona next heads to Saudi Arabia to play a clásico against Madrid on Wednesday in the semifinals of the Spanish Super Cup. Atlético and Athletic Bilbao are in the other semifinal.

FINALLY, A WIN

It took Levante 20 matches, but it finally got its first win of the season.

Roberto Soldado and José Morales scored in its 2-0 win over Mallorca after having gone the entire first half of the season — a full 19 rounds — without a single victory.The only previous win in any competition for the Valencia-based side came against a lower-division opponent in the Copa del Rey, before it was eliminated in the next round by a third-tier opponent.

Levante remained in last place, five points from safety.