World champions in Brazil two years ago and 2-0 winners over Ukraine on Sunday, Germany went into its Group C game against Poland at the Stade de France as the clear favorites.
Instead, Germany was kept in check by a well-organized Poland side that also had the best chance to break the deadlock in a dour game.
Arkadiusz Milik, who had scored Poland's winner against Northern Ireland on Sunday, miscued a header as he fell to his knees in Germany's goalmouth and the ball bounced wide.
For a second match running, Gareth Bale scored with a long-range free kick to put Wales 1-0 up in a match. But unlike its opening-game win over Slovakia, this time there was only disappointment after the break as England substitutes Jamie Vardy and Daniel Sturridge turned the match around for a 2-1 victory.
More From This Section
England coach Roy Hodgson doesn't have a reputation as a hardened gambler when it comes to substitutions. So the sight of Vardy and Sturridge walking on for the second half, instead of Harry Kane and Raheem Sterling, was little short of astonishing.
Vardy levelled in the 56th minute and Sturridge rifled home the winner from a similarly close range in stoppage time.
"We made the decision (on the substitutes) early. It was the right decision," Hodgson said.
"We were anxious to inject a little bit more tempo and pace into our game, and we were anxious to persuade the players to take a few more risks and to show more confidence in themselves in the penalty area."
first half and Niall McGinn padded the lead by driving the ball home in the sixth minute of stoppage time.
Unrecognizable from the side that surrendered meekly in a 1-0 defeat to Poland, Northern Ireland played sharply in its first tournament win since beating host nation Spain at the 1982 World Cup.
"It has been a long time," McAuley said. "We talked about leaving a legacy from this tournament. A few years down the line when I am finished and I look back on it, it will be extra special. It's just sinking in, and now it means staying in the tournament."
"The fan passed away as he was watching the game in the stadium," said Patrick Nelson, chief executive of the Irish FA, the game's ruling body in Northern Ireland.
"This puts any result of a football match into perspective."
Away from the stadiums, the French justice system continued to deal with the aftermath of last week's violence in Marseille involving fans from England and Russia, as well as local youths.
Three Russian fans were sent to prison for up to two years and French officials announced plans to deport 20 others next week for their role in the violence.
On Friday, Group E leader Italy takes on Zlatan Ibrahimovic's Sweden. Two Group D matches then follow: Czech Republic against Croatia, and defending champion Spain taking on Turkey.