Group E Standings

This is how Group E ends after a wild finish to today's games: 

1 - Japan (5pts)

2 - Spain (4pts)

3 - Germany (4pts)

4 - Costa Rica (3pts)

Japan will face Croatia in the Round of 16 on Monday, while Spain take on Group F winners Morocco on Tuesday.

FULL-TIME, Costa Rica 2-4 Germany

After Belgium's early exit, another shocking group stage elimination as Germany are knocked out on goal difference. Marc-André ter Stegen never saw a second of action, and Manuel Neuer's poor performances in goal should raise questions about why the Barça man was the backup given his club form.

FULL-TIME! Japan 2-1 Spain

GERMANY KNOCKED OUT! Japan come from behind to beat Spain and are through as Group E winners! Luis Enrique's La Roja finish second despite only getting a point from their final two games.

JAPAN 1st, SPAIN 2nd

If Spain equalize against Japan, Germany will move into second place on goal difference. With seven minutes of added time, everything can still happen!

89' GOAL!

GERMANY GET A FOURTH! Niclas Füllkrug scores a tap-in from a Leroy Sané assist and the Germans double the lead!

JAPAN 1st, SPAIN 2nd

As it stands Germany are still going out, but another goal from the Germans and a Spain equalizer will knock Japan out.

85' GOAL!

GERMANY TAKE THE LEAD! Havertz gets his second of the night after a cross from Gnabry and the Germans are back in third place!

85min

FIVE MINUTES TO GO! Japan and Spain are through as it stands, but one Costa Rica goal changes everything. Germany need to win by two goals and root for Spain to equalize to advance.

JAPAN 1st, SPAIN 2nd

Germany are still going out but are helping La Roja avoid disaster as it stands.

73' GOAL!

GERMANY EQUALIZE! The ball falls to Kai Havertz inside the box and the Chelsea man makes it 2-2! A huge goal for Spain!