World Cup scores, updates: Japan, Spain move through to Round of 16 as Germany crashes out
The Germans struggled throughout a tense match with Costa Rica before ultimately coming through with a 4-2 win, but it was all for naught as Spain fell to Japan, 2-1, in the other Group E match.
The results meant Germany is once again knocked out at the group stage level.
Japan is the group winner with six points while Spain will also move on due to a goal differential advantage over Germany. The Samurai Blue will face Group F runner-up Croatia in the knockout rounds while Spain will play Morocco.