Ross Moriarty went from villain to hero for Wales as Warren Gatland's team beat 14-man France 20-19 to reach the Rugby World Cup 2019 semifinals.
His 74th-minute try shattered the hopes of a France side who had looked like clinging on for victory after Sebastien Vahaamahina saw red for a disgraceful elbow into the face of Wales flanker Aaron Wainwright.
France scored a pair of tries inside the opening eight minutes and led 19-10 at half-time, with replacement Moriarty having spent a costly 10 minutes in the sin bin.
But Vahaamahina's moment of recklessness proved pivotal, with Wales eventually making its extra man count in a nail-biter - just as France did when beating the Red Dragons 9-8 in the 2011 semifinal at Eden Park.
This was a blood-and-thunder contest, with the emphasis on blood, plenty of which was spilled in a brutal contest.
France held a 19-10 lead when Vahaamahina made his shamed exit from the scene and had over 30 minutes to survive against a Wales side that beat it from 16-0 behind during this year's Six Nations.
Defiance is rarely portrayed as the great strength in French rugby, yet this time it looked like winning the day until Moriarty barged over from close range and Dan Biggar booted the points that nudged Wales ahead for the first time.
France had been terrific early on. Camped on the Wales line in the fifth minute, Jacques Brunel's team was rewarded when Vahaamahina scurried over.
They then broke with devastating pace and incision to plunder a second try. The ball moved sharply through the hands of Virimi Vakatawa and Romain Ntamack, on to Antoine Dupont and finally to flanker Charles Ollivon, who charged in under the posts.
Wales, jolted by the loss of injured centre Jonathan Davies minutes before kick-off, were in disarray.
However, a French gift presented them with a route back into the contest, captain Guilhem Guirado conceding possession in midfield to allow Wainwright a clear, if long, run to the line.
The 22-year-old with the hipster moustache seized the moment, Biggar landed the conversion and kicked a 20th-minute penalty.
Wales was suddenly just two points adrift, but it was damage limitation time when Moriarty, on for the injured Josh Navidi, was sin-binned for a neck-high tackle on Gael Fickou.
READ| Rugby World Cup 2019: All Blacks through to semis with thrashing of Ireland
Virimi Vakatawa struck a swift blow, forcing his way over after a lineout, with Damian Penaud feeding him the pass.
Wales was grateful to be just nine points behind at the break. The game was still there, more so when Vahaamahina was banished in the 49th minute. Referee Jaco Peyper had no alternative - the lock a condemned man once television evidence highlighted his crime.
France dug in, even at times threatening to extend their lead, but Wales knew it would get a chance at some stage.
Moriarty was in the right place at the right time. The Welsh dream remains alive.
- WALES NEEDS MORE THAN THAT -
World Cup knockout games are all about the result, so Wales should be highly satisfied in one sense with its day’s work in Oita. But it was far from a complete performance from Gatland’s men, as he acknowledged, and it was indebted to familiar French folly.
Even with the extra man, Wales rarely looked like making it count. It kept knocking on the French door, only to be told the try-line was out and to feel free to come back later but it was probably out for the night.
The persistence eventually paid off, however, Moriarty lurching through a narrow gap to find that old friend when the door finally swung open. A repeat of this Wales showing in the semifinals will almost certainly result in elimination, so Gatland has work to do this week, and having Davies fit for the next challenge would be a major boost.
- VAHAAMAHINA COST HIS COUNTRY -
Vahaamahina’s elbow on Wainwright looked bad at first glance, appalling in slow-motion, and it will look increasingly sickening to French eyes as it is replayed time and again in the coming days. Make no mistake, he cost his country a semifinal place with an act of contemptible thuggery. One swing, and you just knew France were out.