Japan pulled off another historic World Cup upset as a controversial goal saw them come from behind to beat Spain and claim top spot in Group E.

Spain dominated the first half at the Khalifa International Stadium and looked like they were going to advance in first place after Morata headed home his third goal of the tournament.

Thursday's thrilling finale as it happened

  • 7.10pm UK time – Gnabry gives Germany a fast start against Costa Rica, but they still need Spain to beat Japan.
  • 7.11pm - Morata heads in Spain’s opener. Germany move above Japan in the live table into second place.
  • 8.04pm - Doan drives in an equaliser for Japan. They move level with Germany on points, goal difference, goals scored – but are ahead on head-to-head record
  • 8.06pm - Tanaka bundles in another Japan goal to lead Spain 2-1. Japan move top of group, Spain second and Germany third and going out on goal difference.
  • 8.14pm – Tejeda scores an equaliser for Costa Rica, who go up to third in the table, behind Spain on goal difference. Germany sit bottom.
  • 8.26pm - Vargas puts Costa Rica ahead vs Germany – and incredibly Germany and Spain are going home with Japan top and Costa Rica sitting second.
  • 8.29pm - Havertz almost instantly equalises for Germany. They’re still bottom of the group but Spain move back above Costa Rica on goal difference
  • 8.41pm - Havertz puts Germany back in front. Germany move up to third in the group. They need Spain to equalise against group leaders Japan and they will go above Japan on goals scored
  • 8.46pm – Fullkrug adds another for Germany – but that doesn’t change their situation. They still need a Spain equaliser.
  • 8.53pm - The final whistle in the Spain game leaves Costa Rica and Germany eliminated from the World Cup.

But it all changed after half-time as substitute Ritsu Doan equalized with a shot from the edge of the box, and Ao Tanaka completed the comeback from a Kaoru Mitoma cut-back which appeared to have gone out of play.

A lengthy VAR check followed the goal, but it sensationally ruled in favor of Japan, the ball not being deemed to have crossed the line, leaving Spain to sweat on their place in the last 16.

At one point, when Costa Rica went in front in their 4-2 loss to Germany, Spain were heading out along with Hansi Flick's side, but in the end their superior goal difference enabled them to sneak through to the knockout stages.

Japan, who came from behind to beat Germany in the group stage, will face Croatia in the next round.

The controversial winner in pictures

The ball appears to be over the line before Japan's Kaoru Mitoma crosses for team-mate Ao Tanaka to give them a 2-1 lead against Spain
Image: The ball appeared to be over the line before Japan's Kaoru Mitoma cut it back to Ao Tanaka for the second goal

The ball appears to be over the line before Japan's Kaoru Mitoma crosses for team-mate Ao Tanaka to give them a 2-1 lead against Spain
Image: Mitoma was meeting a Ritsu Doan cross at the byline

The ball appears to be over the line before Japan's Kaoru Mitoma crosses for team-mate Ao Tanaka to give them a 2-1 lead against Spain
Image: VAR ruled in favour of Japan, saying the curvature of the ball had not crossed the line

The first period was all Spain, with Morata's towering head from Cesar Azpilicueta's cross putting them in complete control.

The one- goal margin looked sufficient given Spain's complete dominance of possession and the fact that Morata had other opportunities.

The game against Germany was turned on its head by Japan boss Hajime Moriyasu who used his bench to great effect.

After a poor pass from goalkeeper Unai Simon caused Spain to lose possession deep in their own territory, Doan unleashed a powerful effort from the edge of the box which Simon was unable to stop.

A controversial contribution was made by another substitute as he cut the ball back from a cross at the byline for Tanaka to score.

Alvaro Morata heads Spain in front
Image: Alvaro Morata scored the opener with his third goal of the World Cup

The on-field officials initially ruled the goal out, deeming the ball to have gone out, and despite initial replays appearing to back them up, the VAR ruled that it should count.

Huge drama unfolded in the other game between Germany and Costa Rica as Spain looked shell-shocked.

At one point, Spain appeared to be going out, but Germany's recovery ensured they remained in second place with a goal difference of six.

Japan finished the game with just 18 per cent of the possession, the lowest share by any winning team at a World Cup since 1966, but the victory sent them through to the knockout stages for a second consecutive finals.

Neville and Souness question winning goal

Gary wondered why television viewers weren't shown all the angles of the winning goal.

He said that the high cam on the line suggested that some of the ball may have crossed the line.

I've struggled with it a little bit because we've not been given the correct angles.

We don't see the VAR cameras in the premier league.

  • Souness questions VAR goal | Muller: Unbelievably bitter for us

Japan's Ritsu Doan, left, celebrates with teammate Kaoru Mitoma scoring his side's first goal against Spain during a World Cup group E soccer match at the Khalifa International Stadium in Doha, Qatar, Thursday, Dec. 1, 2022. (AP Photo/Eugene Hoshiko)
Image: Japan's Ritsu Doan, left, celebrates with teammate Kaoru Mitoma

"If they don't show a picture that shows clearly that it didn't go out of play, you're thinking something isn't right," Souness said.

There are 80 million Germans who are waiting for a picture to show that the ball didn't hit the wall.

Germany is a big football nation. Why don't you clear it up right away?

Why don't we see something that's so controversial?

They are not showing it to us. Please clear it up.

What the managers said

"We are classified for the round of 16 and I am not happy at all."

We were the ones who lost after the match in which the rival was dominated for 80% of the time. I don't celebrate victories.

We are qualified, but I would have liked to be at the top of the group.

They scored two goals in five minutes and dismantled us in the next 10 minutes.

We have entered a state of collapse. They would have scored against us if they needed to.

I have faith in my team. I don't think panic will change what I think. My job is to make people feel better.

I would have had a heart attack if I'd known that Costa Rica was leading Germany.

Japan players celebrate their equaliser
Image: Japan players celebrate their equaliser against Spain

"We played against Spain, one of the best teams in the world, and we knew before the game that it was going to be very tough and difficult."

The players did well despite the fact that they conceded a goal.

There were many fans who traveled all the way from Japan. We are giving this victory to the people of Japan.

What does the result mean?

Group E winner Japan will play Group F runner-up Croata in the last 16 on Monday at 3pm.

Spain and Germany finished second and third, respectively, and will face off in the last 16 on Tuesday at 3pm.

Costa Rica finished bottom of the group with three points, the same as Germany.

Twitter Due to your consent preferences, you’re not able to view this. Open Privacy Options

  • Japan have progressed to the knockout rounds in consecutive World Cup tournaments for the first time, while they've finished top of their group for the first time since 2002.
  • Japan have become the third team in World Cup history to be losing at half time and come back to win two matches in a single edition, after Brazil in 1938 and Germany in 1970.
  • Japan had just 18 per cent possession against Spain, the lowest share of the ball for a winning team in a World Cup match since records began in 1966.
  • Three of Japan's last four goals at the World Cup have been scored by substitutes, as many as they'd scored via subs in their first 20 goals in the competition.
  • Alvaro Morata scored his ninth goal in just 13 appearances at major tournaments for Spain (World Cup and Euros). Only David Villa (13 in 16 apps) has scored more such goals for the country.
  • At 25 years 98 days old, Spain started with their youngest XI in a World Cup match since their 3-1 defeat to France in the round of 16 in 2006 (24y 321d).