Jacob Stockdale scored two tries as Ireland maintained their perfect Six Nations record with a tense, record-equalling 37-27 bonus-point win at the Aviva Stadium on Saturday.
Joe Schmidt's men matched the Ireland record of 10 consecutive Test victories, spoiling Warren Gatland's 100th game in charge of Wales and all but ending their hopes of winning the title.
Injury-hit Ireland outscored their opponents by five tries to three in Dublin, Stockdale going over early on and Bundee Aki crossing on the stroke of half-time after a Gareth Davies try and the boot of the fit-again Leigh Halfpenny had edged Wales in front.
Dan Leavy and Cian Healy touched down as Wales were outmuscled by the rampant Ireland forwards, but Wales were back in it midway through the second half courtesy of an Aaron Shingler try, which was superbly converted by Halfpenny.
Steff Evans set up a tense finale with a third Wales try in the closing stages following a three-pointer from Conor Murray, who took over kicking duties after Jonathan Sexton missed two penalties and as many conversion attempts on an off day for the fly-half.
Stockdale sealed it with a breakaway try right at the end in a dramatic climax to a pulsating encounter as Ireland made it three wins out of three in the tournament.
Halfpenny marked his return by sending a penalty through the posts just two minutes in and Sexton missed an opportunity to level from the tee soon after when he struck a post, but made amends by playing a key role in an early Ireland try.
The fly-half took a pass from Murray and whipped a sumptuous ball out to Stockdale, who claimed a seventh try in as many Tests with a simple finish in the left corner with seven minutes on the clock.
Sexton failed to convert and uncharacteristically missed another straightforward penalty before Wales scored their first try from out of the blue, the nippy Davies changing direction sharply and darting through a gap to go over following a strong run from Shingler midway through the first half.
Halfpenny added the extras and was on target with a penalty as Wales' kicking game worked a treat, but Sexton got off the mark from close range and converted to edge his side in front at 15-13 after Aki reached out to dot down when the Ireland forwards applied immense pressure.
Ireland carried on where they left off early in the second half, Leavy powering his way over and Healy also touching down from close range following a turnover at the lineout.
Sexton was unable to convert both scores but Ireland looked to be in control with Chris Farrell outstanding on his Six Nations debut until Evans scooted away down the right and Shingler was on hand to score a second Wales try, which Halfpenny converted superbly.
Gatland's men were not finished yet, though, Scott Williams and Josh Navidi combining before Evans was given the opportunity to run in for a third Wales try, which the reliable Halfpenny converted to make it a three-point game with three minutes to play.
But there was huge relief for the vast majority of a partisan crowd when the rapid Stockdale plucked a stray pass to race away and go under the posts, Joey Carbery converting right at the end of a breathless encounter.
|Get behind Sterling, urges Henderson|
|Sampaoli begs for Argentina´s forgiveness|
|The 2018 NBA Draft first round in full|
|Everything still to play for against ´very strong´ France, says Eriksen|
|Cubs bested by Harvey, Yankees sweep Mariners|
|Spurs GM: We´ll do what we can to keep Leonard|
|Lovren: This Croatia team are better than 1998 heroes|
|Internationals Musa, Okobo selected in NBA Draft|
|Modric is the world´s best number 10 – Arbeloa|
|Kurz stay crucial to Jakobsen´s Adelaide move|
|Nuggets end Porter´s slide at number 14|
|Argentina were crying like girls – Vrsaljko|
|Cavaliers select Sexton with number eight overall pick|
|Argentina must ´pray´ results go their way, says Mascherano|
|Grizzlies select Jackson with number four pick|
|Hawks select Doncic with third pick, trade him to Mavericks|
|Kings take Bagley with number two pick|
|Suns select Ayton number one overall in NBA Draft|
|Argentina concerns grow as Dalic vows to rest players against Iceland|
|Messi could retire after World Cup, says Zabaleta|
|Spieth, McIlroy off to hot starts at Travelers Championship|
|Let Sampaoli say what he wants - Aguero angry at Argentina loss|
|Perisic: Messi is the best, but Argentina do not play as a team|
|Dominant England are ´spoiled´ by options, says Morgan|
|Argentina squad ´clouds´ Messi´s brilliance, claims Sampaoli|
|Fagner to start for Brazil due to Danilo injury|
|Arzani lauds leader Jedinak and remains confident on last-16 chances|
|Croatia cut Messi off in Argentina thrashing - Modric|
|Pogba: Kante, Matuidi have 15 lungs|
|Julian Nagelsmann: the Bundesliga prodigy swapping Hoffenheim for RB Leipzig|
|England dominate in Durham to close in on series whitewash|
|´Fortunate´ Federer closes in on Halle title|
|Calamity Caballero and Sampaoli tinkerings leave Argentina a broken mess|
|Wimbledon champion Muguruza confident despite Birmingham defeat|
|Argentina 0 Croatia 3: Caballero drops clanger as Messi´s men are stunned|
|Funes Mori departs Everton to join Villarreal|
|Djokovic beats Dimitrov as Kyrgios lays down a marker|
|Relegated Verona appoint World Cup winner Grosso|
|Trotz named Islanders´ new coach|
|Matic and Serbia ready for ´hellish´ Switzerland clash|
|Fleetwood flounders as Gros takes Pulheim lead|
|No attacks on Neymar, pledges Costa Rica boss Ramirez|
|Giroud return brings structure to France, but again they disappoint|
|Brighton sign Sunderland goalkeeper Steele|
|Schmeichel and Eriksen blast ´exceptionally harsh´ VAR penalty|
|Nigeria´s young World Cup squad learning on the job - Rohr|
|Moody: England players need protection|
|France 1 Peru 0: Mbappe books last-16 spot with record goal|
|I don´t need anyone to hold my hand - Verstappen|
|Captaincy comes back around to Silva as 2014 pain fades|
|We don´t want to be losers - Petkovic|
|Alba not interested in Barcelona exit as Tottenham rumours swirl|
|BREAKING NEWS: Nagelsmann to take RB Leipzig role in 2019|
|Messi cannot be compared to Maradona, claims Argentina World Cup winner Kempes|
|Mbappe sets France record with maiden World Cup strike|
|Federer comes through tough Halle test|
|Nagelsmann to leave Hoffenheim amid RB Leipzig rumours|
|Gerrard brings former Liverpool team-mate Flanagan to Rangers|
|Cipriani to be ´the calmest guy in the room´ on England return|
|C´est magnifique! Lloris earns 100th France cap|
|Belgium v Tunisia: Hazard hoping for World Cup lift off|
|WATCH: Manchester United ditch piano to welcome Fred the red|
|Hamann springs to defence of Ozil|
|Alonso non-committal on future after Le Mans triumph|
|McInally returns to Scotland starting line-up|
|Giroud & Matuidi start as Deschamps drops Dembele for Peru|
|Torreira focused on Uruguay amid Arsenal links|
|NBA Mock Draft 2018: Deandre Ayton leads intriguing first round|
|Tite will not take away Neymar´s ´genius´|
|Australia show promise but calls for Cahill ignored amid lack of cutting edge|