Switzerland booked their place in the last 16 despite being held to a late 2-2 draw by Costa Rica in their final game of Group E.
The Swiss went into the game needing a draw to qualify for the knockout rounds and Blerim Dzemaili fired Switzerland ahead in the 31st minute before Costa Rica scored their first goal of the 2018 World Cup as Kendall Waston’s header got them level.
There was more late drama at the Nizhny Novgorod Stadium as Josip Drmic swept Switzerland back into the lead with two minutes of normal time to play.
Switzerland: Sommer (7), Rodriguez (7), Akanji (6), Schar (6), Lichtsteiner (7), Xhaka (7), Behrami (6), Embolo (8), Dzemaili (6), Shaqiri (7), Gavranovic (6).
Subs used: Zakaria (6), Drmic (6), Lang (4).
Costa Rica: Navas (7), Acosta (6), Gonzalez (7), Oviedo (7), Gamboa (7), Waston (7), Borges (7), Colindres (7), Ruiz (7), Guzman (7), Campbell (7).
Subs used: Wallace (4), Azofeifa (n/a), Smith (n/a).
Man of the match: Breel Embolo.
WATCH MATCH VIDEO BELOW: