Lionel Messi is back in the Barcelona squad that will face second-division club Rayo Vallecano in the Copa del Rey on Wednesday.

Messi has not played in the Copa del Rey this season but coach Ronald Koeman is expected to use him in the round-of-16 game after missing two matches because of a suspension. Messi had been rested before that because of an unspecified minor fitness problem.

More Images
Athletic Bilbao's Ander Capa tackles Barcelona's Lionel Messi, foreground, during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Lionel Messi is back in the Barcelona squad that will face second-division club Rayo Vallecano in the Copa del Rey on Wednesday.

Barcelona's Lionel Messi walks out of the pitch after being shown a red card during the Spanish Supercopa final soccer match against FC Barcelona at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Messi received a two-match suspension for hitting an opponent away from the ball late in the team’s 3-2 loss to Athletic Bilbao in the Spanish Super Cup final on Jan. 17.

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona has played well this year despite the loss to Athletic in the Spanish Super Cup. It has won four straight league matches, all away from home. The Catalan club is unbeaten in nine consecutive league games.

Athletic Bilbao's Ander Capa duels with Barcelona's Lionel Messi, foreground, during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

The Copa del Rey's round of 16 is still played in one-game matchups.

Barcelona's Lionel Messi, center, runs past Athletic Bilbao's Ander Capa, right, and Athletic Bilbao's Yeray Alvarez during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

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

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

“He's fresh and isn't feeling any ailments,” Koeman said Tuesday. “To win things we need Messi to be in good shape and playing at the level that he can play. He is excited to play. He is the kind of player who wants to play in every match. We will look at our opponent and tomorrow we will know exactly who will be in the starting 11.”

Athletic Bilbao's Ander Capa tackles Barcelona's Lionel Messi, foreground, during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Athletic Bilbao's Ander Capa tackles Barcelona's Lionel Messi, foreground, during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Messi received a two-match suspension for hitting an opponent away from the ball late in the team’s 3-2 loss to Athletic Bilbao in the Spanish Super Cup final on Jan. 17.

He did not play against Cornellà in the round of 32 of the Copa del Rey last week, nor against Elche in the Spanish league on Sunday. Barcelona won both matches 2-0.

The Catalan club trails Spanish league leader Atlético Madrid by 10 points and is three points behind second-place Real Madrid entering the second half of the season. Atlético has a game in hand.

Barcelona's Lionel Messi walks out of the pitch after being shown a red card during the Spanish Supercopa final soccer match against FC Barcelona at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona's Lionel Messi walks out of the pitch after being shown a red card during the Spanish Supercopa final soccer match against FC Barcelona at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona has played well this year despite the loss to Athletic in the Spanish Super Cup. It has won four straight league matches, all away from home. The Catalan club is unbeaten in nine consecutive league games.

Rayo is coming off a loss to Mallorca but previously had won six in a row in all competitions. It sits fourth in the second-division standings, in good position to earn promotion.

Barcelona defender Sergiño Dest will not play Wednesday because of a “thigh discomfort,” the club said.

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

The Copa del Rey's round of 16 is still played in one-game matchups.

“The Copa is a shorter tournament, with fewer games, and we play to win it," Koeman said. “I want to see my team with this winning mentality, just like it showed until now.”

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

Athletic Bilbao's Ander Capa duels with Barcelona's Lionel Messi, foreground, during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Athletic Bilbao's Ander Capa duels with Barcelona's Lionel Messi, foreground, during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

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

Barcelona's Lionel Messi, center, runs past Athletic Bilbao's Ander Capa, right, and Athletic Bilbao's Yeray Alvarez during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona's Lionel Messi, center, runs past Athletic Bilbao's Ander Capa, right, and Athletic Bilbao's Yeray Alvarez during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)

Barcelona's Lionel Messi during the Spanish Supercopa final soccer match between FC Barcelona and Athletic Bilbao at La Cartuja stadium in Seville, Spain, Sunday, Jan. 17, 2021. (AP PhotoMiguel Morenatti)