Taking advantage of a quiet game from Lionel Messi in his 900th career match, Sevilla defeated Barcelona 2-0 in the first leg of the Copa del Rey semifinals on Wednesday.

Messi squandered a couple of chances as Sevilla won its eighth consecutive match in all competitions thanks to a goal by Jules Koundé in the first half and another by former Barcelona midfielder Ivan Rakitic near the end.

More Images
Sevilla's Jules Kounde, second right, kicks the ball to score his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Taking advantage of a quiet game from Lionel Messi in his 900th career match, Sevilla defeated Barcelona 2-0 in the first leg of the Copa del Rey semifinals on Wednesday.

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Sevilla and Barcelona entered the semis as the hottest teams in Spain. The Catalan club was coming off six straight wins in all competitions.

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Messi, making his 758th appearance with Barcelona to add to his 142 with Argentina, commanded the attack but failed to capitalize on his chances, including one with only Bono to beat in the 11th minute. He nearly scored with a stoppage-time free kick that again was stopped by Bono.

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Rakitic sealed the victory in an 85th-minute breakaway, beating goalkeeper Marc-André ter Stegen with a shot into the top of the net. The midfielder didn't celebrate the goal against his former club.

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

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

Barcelona's Frenkie de Jong, centre, gestures during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Barcelona's Frenkie de Jong, centre, gestures during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Barcelona's Lionel Messi tries a shoot during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Barcelona's Lionel Messi tries a shoot during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

The second leg will be on Feb. 27 at the Camp Nou Stadium in Barcelona. Athletic Bilbao hosts Levante on Thursday in the first leg of the other semifinal.

Sevilla's Jules Kounde, second right, kicks the ball to score his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Sevilla's Jules Kounde, second right, kicks the ball to score his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Sevilla and Barcelona entered the semis as the hottest teams in Spain. The Catalan club was coming off six straight wins in all competitions.

The teams played in the Copa final in 2016 and 2018, with Barcelona coming out on top both times. The Catalan club is trying to make it to its ninth final in 11 years. It made it to the last four nine straight times before being eliminated by Athletic in the quarterfinals last season.

Barcelona controlled possession but it struggled to create many significant chances at the Ramón Sánchez-Pizjuán Stadium, with Sevilla goalkeeper Bono stopping the few efforts he faced. Sevilla constantly threatened on counterattacks, especially after opening the scoring in the first half.

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Messi, making his 758th appearance with Barcelona to add to his 142 with Argentina, commanded the attack but failed to capitalize on his chances, including one with only Bono to beat in the 11th minute. He nearly scored with a stoppage-time free kick that again was stopped by Bono.

Messi had been rested in the Spanish league game against Real Betis on Sunday, when he came off the bench in the second half to lead the team to a come-from-behind victory.

Koundé put Sevilla ahead in the 25th with a nice run that culminated with him slipping the ball in between the legs of Barcelona defender Samuel Umtiti before shooting into the net from inside the area.

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Rakitic sealed the victory in an 85th-minute breakaway, beating goalkeeper Marc-André ter Stegen with a shot into the top of the net. The midfielder didn't celebrate the goal against his former club.

Barcelona coach Ronald Koeman was without three players because of injuries — Martin Braithwaite, Sergiño Dest and Miralem Pjanic. Sevilla’s Julen Lopetegui was without injured players Lucas Ocampos and Jesús Navas.

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

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

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

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Sevilla's Jules Kounde celebrates after scoring his side's first goal during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Barcelona's Frenkie de Jong, centre, gestures during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Barcelona's Frenkie de Jong, centre, gestures during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Barcelona's Lionel Messi tries a shoot during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)

Barcelona's Lionel Messi tries a shoot during a Spanish Copa del Rey semifinal soccer match between Sevilla and FC Barcelona at Ramon Sanchez Pizjuan stadium in Seville , Spain, Wednesday, Feb. 10, 2021. (AP PhotoAngel Fernandez)