Switzerland has made it to the round of 16 at the World Cup despite twice losing the lead in a 2-2 draw with Costa Rica, which are already out of the tournament.
Costa Rica scored from Bryan Ruiz spot-kick in stoppage time to tie the game on Wednesday night, but it didn't affect Switzerland's progression as the second-place team in Group E.
Brazil topped the group after defeating Serbia 2-0 and will play Mexico while Switzerland will play Sweden.
Bjerim Dzemaili scored Switzerland's first goal from close range shot after being set up by a header from Breel Embolo.
Costa Rica got its first goal in competition when defender Kendall Waston headed in a corner early in the second to equalize.
Substitute Josip Drmic put Switzerland up 2-1 in the 88th minute. Ruiz's penalty kick hit the crossbar and next bounced in off of goalkeeper Yann Sommer.
This article was most recently revised and updated 4 years ago