Japan defeated group E favourites, Spain to top the group with six points.
Spain took the lead in the first half through Morata only for Japan to mount a dramatic comeback in the second half following goals from Doan and Tanaka.
That, coupled with the fact that Germany beat Costa Rica in the group’s other game, means that Japan go through as group winners while Spain go through as runners-up.
Yes, Germany are out of the World Cup despite coming from behind to beat Costa Rica thanks to a brace from substitute Havertz.
Ahead early on through a Gnabry header, Costa Rica turned the score in their favour in the second half.
First, it was Tejeda who slammed the ball into the bottom corner, getting on the end of a rebound after Neuer fumbled Waston’s header.
Suarez’s side briefly moved above Spain and into second when Vargas’ flick was directed into the net by Neuer, before Havertz hit back with a quick response.
Germany were behind for just three minutes, with the Chelsea man directing Fullkrug’s pass beyond Navas before slamming Gnabry’s inviting cross past the Costa Rican goalkeeper.
With an assist to his name, Fullkrug then scored Germany’s fourth to confirm the victory, striking the ball in from close range after Sane laid it into his path. It was first disallowed for offside before VAR intervened to give the goal.