Northern Ireland's Gareth McAuley scored a heart-breaking own goal to hand Wales a 1-0 victory in the so-called Battle of Britain and a place in the Euro 2016 quarter-finals.
In a cagey contest, Michael O'Neill's Northern Ireland largely succeeded in muzzling Gareth Bale, but the Real Madrid star produced a wicked 75th-minute cross that the hapless McAuley turned into his own net.
McAuley proclaimed himself "gutted" and his coach Martin O'Neill said the defeat was "very cruel".
The West Bromwich Albion centre-back's unwitting intervention allowed Wales to reach the last eight in a major tournament for the first time since the 1958 World Cup in Sweden.
"We knew it was going to be an ugly match," Bale said.
Northern Ireland made it difficult to play. There was not much space up front. You can't ask for anymore. It's incredible."
Chris Coleman's Wales, who qualified above old foes England as Group B winners, will play either Belgium or Hungary in Lille on Friday for a place in the semi-finals.
With no former major tournament winners in Wales's half of the draw, they will advance with belief intact that they can create a sensation.
And in an ironic touch, it was Wales, whose inhabitants voted to leave the European Union in Thursday's British referendum, who remained in Europe, and Northern Ireland, whose people voted to stay, who departed.
- Devilish cross -
Coleman named the same team that had trounced Russia 3-0 last Monday, but Northern Ireland provided vastly more disciplined opposition, sitting in a low bloc and looking to attack on the break.
It obliged Bale, the tournament's joint-top scorer, to move out to the right in search of the ball and aside from a mishit shot that flew well wide, he scarcely offered a threat in the first half.
Instead it was Northern Ireland who procured the few sights of goal, Stuart Dallas testing Wayne Hennessey at his near post.
Wales had the ball in the net in the 19th minute, but Aaron Ramsey was clearly offside as he moved in to toe Sam Vokes's header past Northern Ireland's redoubtable goalkeeper Michael McGovern.
With the on-pitch action failing to satisfy, attention turned to the festivities in the stands.
Northern Irish fans goaded their Welsh counterparts with chants of "You're just a small part of England."
The supporters in green then belted out their ode to striker Will Grigg, prompting Welsh supporters to caustically retort: "You've only got one song!"
Wales began to show a sharper cutting edge in the second period, Vokes heading wide from Ramsey's deep cross and Bale drawing a parry from McGovern with one of his trademark, dipping free-kicks.
Vokes made way for Hal Robson-Kanu shortly after his chance and Coleman made an attacking change shortly after when he introduced Jonathan Williams in midfield for the more conservative Joe Ledley.
O'Neill also made a bold substitution, sending on Conor Washington, who had lost his place up front to Kyle Lafferty, but it was Wales who made the breakthrough.
After a spell of Welsh possession, Ramsey slipped a pass to Bale, who whipped a devilish cross into the six-yard box from the left.
In trying to prevent the ball reaching Robson-Kanu, the hapless McAuley could only toe the ball into his own net.
McAuley, who had conceded an 89th-minute penalty when the teams drew 1-1 in Cardiff in March, was taken off for Josh Magennis in the 84th minute.
It left Grigg -- whose chant has become the soundtrack of the competition -- to end the tournament having not played a single second.
But his song, like the memories of Northern Ireland's ebullient fans, is likely to echo for some time.
"It's devastating. We were the better team on the day," O'Neill said.
"But I couldn't ask anything more of the players throughout the tournament."
Source: AFP
GMT 14:06 2017 Thursday ,22 June
Afghanistan, Ireland face cricket Test D-DayGMT 09:42 2017 Thursday ,09 March
Ireland seek Wales stepping stone for Six Nations showdownGMT 09:29 2017 Saturday ,25 February
England's rivals set for staying alive battlesGMT 10:00 2017 Saturday ,11 February
No room for sentiment as Six Nations take shapeGMT 11:22 2016 Saturday ,03 September
Ireland readies for marathon Olympic ticket probeMaintained and developed by Arabs Today Group SAL.
All rights reserved to Arab Today Media Group 2023 ©
Maintained and developed by Arabs Today Group SAL.
All rights reserved to Arab Today Media Group 2023 ©