Sweden 3, Mexico 0

The Swedes rolled to a rout Wednesday in Yekaterinburg, Russia, never challenged in the second half, overtaking Mexico to win Group F. The result, combined with South Korea’s 2-0 upset of the Germans, meant Sweden and Mexico — the group runner-up — advanced. The defending champions from Germany go home early.

Sweden makes its first appearance in the knockout stage since 2006. Mexico plays in the round of 16 for the seventh straight World Cup, with its fans desperate for its first quarterfinal appearance in 32 years — the elusive “quinto partido,” or fifth game.

Sweden didn’t want to focus on getting revenge by helping eliminate Germany, which got some favorable calls in a tense 2-1 victory over the Swedes on Saturday night.

“We grew another little bit,” Sweden coach Janne Andersson said. “I am not going to sit here and gloat having won a match or boast about a win. We don’t want to stir things up too much.”

Ludwig Augustinsson volleyed a left-footed shot past goalkeeper Guillermo Ochoa from close range five minutes into the second half, and captain Andreas Granqvist converted a penalty kick to help Sweden take control.

Mexico’s Edson Alvarez had an own goal in the 74th minute to put the game out of reach at 3-0.

South Korea 2, Germany 0

Germany is out of the World Cup, the fourth defending champion in the last five tournaments to be eliminated in the group stage.

The four-time champions lost to South Korea in Kazan, Russia, allowing two injury-time goals while knowing a 1-0 victory would have been enough to advance because of the result in the other group match.

Germany ended up last in Group F while Sweden and Mexico advanced to the round of 16. South Korea was also eliminated despite the victory.

“It’s very, very hard to put it into words,” Germany defender Mats Hummels said. “We believed until the end today, even when it was 0-1, I think we kept trying to turn it all around.”

It was the first time Germany has been eliminated in the first round since 1938.

Brazil 2, Serbia 0

Paulinho and Thiago Silva scored a goal each to give five-time champion Brazil s a victory in Moscow over Serbia and first place in its group.

Brazil struggled in its opening two matches, first held to a 1-1 draw and then needing late goals to win the other. But they controlled this one.

Paulinho gave his team the lead when he met a lofted ball from Philippe Coutinho in the 36th minute. The defensive midfielder let the ball bounce in front of him near the penalty spot and kicked his right leg in the air to tap it over the goalkeeper’s fingertips.

Silva later scored with a powerful header in the 68th from Neymar’s corner.

Brazil finished first in Group E and will next face Mexico in the round of 16 on Monday in Samara. Serbia was eliminated, finishing third in the group behind Switzerland.

Switzerland 2, Costa Rica 2

Switzerland is through to a knockout game against Sweden at the World Cup. Half of its starting defense isn’t.

Switzerland qualified second in Group E behind Brazil despite twice losing the lead in a 2-2 draw with Costa Rica in Nizhny Novgorod, Russia. The riveting game culminated with an injury-time penalty from Costa Rica captain Bryan Ruiz that hit the crossbar and went in off Swiss goalkeeper Yann Sommer’s head.

Despite the late drama, a draw was enough to send Switzerland through to the knockout stage.

But the bad news for the Swiss: Yellow cards for captain Stephan Lichtsteiner and fellow defender Fabian Schaer — their second of the tournament — meant they’ll be suspended for the Sweden match in St. Petersburg.

Their absence leaves two gaping holes to be filled at the back as Switzerland chases a place in the quarterfinals of the World Cup for the first time since 1954.