Germany beat the USA to top Group G but the Americans advance on goal difference
Thomas Muller moved level with Lionel Messi and Neymar at the top of the World Cup scoring charts with the goal which took Germany through to the last 16.
The Bayern Munich midfielder scored his ninth goal in as many World Cup appearances 10 minutes into the second half to earn Germany a 1-0 win over the United States, who joined the group winners in the knockout stages on goal difference ahead of Portugal.
Germany controlled much of the game in a rainswept Recife, deservedly taking the three points to top Group G with two wins and a draw.
Following heavy overnight rain which had seen the city of Recife wake up to widespread flooding, a pitch inspection was required before the all-clear was given.
Both teams warmed up behind the goals to protect the surface as the rain continued to fall, evoking memories of Germany's 1954 World Cup final triumph over a fancied Hungary in Berne.
This time, it was they who were heavily fancied to beat a nation coached by fellow German Jurgen Klinsmann, and it did not take a team including six Bayern Munich players and three from Arsenal long to prove why.
Straight into their possession-based game, Germany had the USA on the back foot for 10 minutes before Klinsmann's men were finally able to get their feet on the ball for a prolonged spell.
The respite was only brief, though, as Germany once again started to dictate proceedings before, on the break, Graham Zusi went the closest yet to breaking the deadlock with a curling effort over the crossbar.
Mesut Ozil had Germany's best chance of the first half, shooting straight at Tim Howard as Germany were unable to make the most of their apparent superiority.
Germany's all-time top goalscorer Miroslav Klose was sent on at the start of the second half and he went within inches of connecting well with Bastian Schweinsteiger's cross, but all he could do was flick the ball wide of Howard's post.
The Germans shifted up the gears to increase the pressure on the USA and, 10 minutes into the second half, they got their reward.
Per Mertesacker's header was pushed out instinctively by Howard, but the ball fell out to Muller, who picked his spot in the bottom right-hand corner of the goal from the edge of the penalty area for his fourth goal of the tournament.
Much had been made in the build-up of Germany's non-aggression pact with Austria from the 1982 World Cup, when they obtained the 1-0 result in Gijon which took both nations through.
Thoughts of them replicating that in Recife and allowing the USA to get the draw they needed to be sure of joining them in the last 16 were soon dismissed, though, as Joachim Low's men showed no sign of letting up.
They could not find the second goal they deserved though, and Philipp Lahm had to produce a last-minute block to preserve the win.
With Portugal unable to wipe out their negative goal difference in the other game in the group against Ghana, USA were also able to celebrate at the final whistle, joining Germany in the last 16 as group runners-up.