Lionel Messi lost his cool after another Barcelona collapse on Sunday, hitting an opponent away from the ball and being sent off for the first time while playing with the Catalan club in the team’s 3-2 loss to Athletic Bilbao in the final of the Spanish Super Cup.

Iñaki Williams' goal in extra time gave Athletic the lead and a come-from-behind win. Barcelona had little chance of recovering when Messi swung his right arm toward the head of an Athletic player while trying to free himself. Messi was shown the red card following a video review.

More Images
Athletic Bilbao's Inaki Williams, right, scores his team third goal 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 lost his cool after another Barcelona collapse on Sunday, hitting an opponent away from the ball and being sent off for the first time while playing with the Catalan club in the team’s 3-2 loss to Athletic Bilbao in the final of the Spanish Super Cup.

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 goal three minutes into extra time secured Athletic its third Super Cup title, and first since it beat Barcelona in the 2015 final. The Basque Country club also won the title in 1984.

FC Barcelona players celebrate after scoring the opening goal 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 opened the scoring with a shot from the middle of the area by Antoine Griezmann in the 40th minute but Athletic equalized two minutes later with a close-range strike by Óscar de Marcos after a well-placed cross by Williams. Griezmann put Barcelona ahead with another shot from inside the area in the 77th but Athletic evened the match again with Asier Villalibre finding the net following a set piece in the 90th.

Athletic Bilbao's Oscar de Marcos, right, scores 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, who helped set up Barcelona's first goal, had been doubtful to play in the final because of an unspecified fitness issue that had caused coach Ronald Koeman to leave him out of the semifinal against Real Sociedad on Wednesday, when Barcelona prevailed in a penalty shootout.

Athletic Bilbao's Raul Garcia, right, kicks the ball next to Barcelona's Sergio Busquets with 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)

Accompanying the Athletic squad in Seville was Aritz Aduriz, the club’s former striker who was forced to retire last season because of a hip injury.

Athletic Bilbao's Oscar de Marcos, right, scores 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)

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

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)

After Athletic scored in the 90th minute to seal a 2-2 draw and force extra time, Williams netted the title-clinching goal with a neat curling shot from just inside the area, with the ball hitting the far post before going into the top corner.

Athletic Bilbao's Inaki Williams, right, scores his team third goal 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 Inaki Williams, right, scores his team third goal 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 goal three minutes into extra time secured Athletic its third Super Cup title, and first since it beat Barcelona in the 2015 final. The Basque Country club also won the title in 1984.

Barcelona was seeking its 15th Super Cup title, and third in the last five seasons. It was also looking to end its title drought after going without a trophy last season, something that hadn't happened since 2007-08.

It was an even match at the La Cartuja Stadium in Seville, with neither team creating many significant scoring opportunities.

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 opened the scoring with a shot from the middle of the area by Antoine Griezmann in the 40th minute but Athletic equalized two minutes later with a close-range strike by Óscar de Marcos after a well-placed cross by Williams. Griezmann put Barcelona ahead with another shot from inside the area in the 77th but Athletic evened the match again with Asier Villalibre finding the net following a set piece in the 90th.

Villalibre was the player hit by Messi in the final minutes as the players tangled together outside the area. The ball was already on the left side of the area when the incident happened.

Athletic had a 57th-minute goal disallowed by video review because of offside following a header by Raúl García, who had netted twice in the semifinal against Real Madrid.

FC Barcelona players celebrate after scoring the opening goal 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)

FC Barcelona players celebrate after scoring the opening goal 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, who helped set up Barcelona's first goal, had been doubtful to play in the final because of an unspecified fitness issue that had caused coach Ronald Koeman to leave him out of the semifinal against Real Sociedad on Wednesday, when Barcelona prevailed in a penalty shootout.

Athletic reached the final by eliminating defending champion Madrid 2-1.

The final was the third match in charge for Athletic coach Marcelino García Toral. His debut had been against Barcelona in a league game at home, when Messi scored twice to help the Catalan club recover from an early goal by Williams and secure a 3-2 victory.

Athletic Bilbao's Oscar de Marcos, right, scores 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 Oscar de Marcos, right, scores 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)

Accompanying the Athletic squad in Seville was Aritz Aduriz, the club’s former striker who was forced to retire last season because of a hip injury.

When Athletic defeated Barcelona in 2015, the Spanish Super Cup final was still played in two legs between the Spanish league and Copa del Rey winners.

This year’s edition was moved to southern Spain after the coronavirus pandemic stopped it from being played in Saudi Arabia for a second straight season. The tournament’s revamped Final Four format includes the top two finishers in the Spanish league and the finalists of the Copa del Rey from the previous season.

Athletic Bilbao's Raul Garcia, right, kicks the ball next to Barcelona's Sergio Busquets with 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 Raul Garcia, right, kicks the ball next to Barcelona's Sergio Busquets with 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)

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

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

Athletic Bilbao's Oscar de Marcos, right, scores 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 Oscar de Marcos, right, scores 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)