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.
|Kane disappointed by refereeing decisions despite England win|
|Koepka backed by coach to win more majors|
|Rybarikova ousts Pliskova in Birmingham, seeds fail in Mallorca|
|Kane: England players had flies in our mouths|
|Lemar signs Atletico deal|
|Griezmann renews Atletico Madrid contract after rejecting Barcelona|
|Captain Kane comes good to heighten England´s aura of optimism|
|Wawrinka and Cilic cruise through at Queen´s|
|Saudi Arabia team safe after aircraft´s ´technical failure´|
|Courtois: Panama made unnecessary tackles|
|Thiem makes winning start on Halle grass|
|Tunisia 1 England 2: Captain Kane saves Three Lions|
|Trotz resigns as Capitals coach after Stanley Cup win|
|You´ll see the best of Hazard later - Eden predicts strong World Cup|
|Mickelson made statement over ´outrageous´ conditions, says Cowen|
|France will grow again - former coach Saint-Andre sees positive signs for Les Bleus|
|Lewandowski sets an example - Nawalka talks up Poland star|
|Runners and Ryders: Koepka shines at Shinnecock Hills as European list sees major changes|
|Mature and patient Belgium show success could be on horizon|
|Salah facing fitness test ahead of Russia v Egypt|
|South Korea´s Park has suspected hamstring tear|
|Sweden hero Granqvist full of praise for VAR|
|Iran v Spain: Isco impressed with Hierro´s seamless adaptation|
|Belgium 3 Panama 0: Mertens magic sets up Group G win|
|Jorginho has ´five-year Man City deal waiting´|
|Wolves sign Portugal goalkeeper Patricio|
|Pekerman criticises Barcelona´s treatment of Yerry Mina|
|Neymar misses Brazil World Cup training|
|FIFA opens disciplinary proceedings over alleged Mexico homophobic chants|
|Cisse hoping to be a pioneer for black and African coaches|
|World Cup over for Croatia´s Kalinic|
|Defiant Jones confident of upturn in England fortunes|
|Pogba a natural leader for France - Matuidi|
|Frampton to face Jackson as Fury continues comeback in Belfast|
|Team effort needed for Japan to stop James, says Nishino|
|Di Francesco extends Roma contract|
|It was a normal challenge - Switzerland equaliser fine by Shaqiri|
|Hamilton hopes to avoid ´boring´ French Grand Prix|
|Coutinho expects more Neymar punishment at World Cup|
|Cisse hails Mane as ´one of the best players in the world´|
|Forsberg falls flat as Granqvist proves Sweden´s hero|
|Sweden 1 South Korea 0: Granqvist´s VAR-assisted penalty settles tight game|
|Nishino concerned Japan players affected by Osaka earthquake|
|Isco pleased with Lopetegui´s Real Madrid appointment|
|Hazard hints at Real Madrid interest|
|Wasps disappointed as Wilson joins Scotland backroom staff|
|Hierro has full confidence in De Gea|
|Russia will stop Salah - Cherchesov|
|Allen signs new four-year Stoke contract|
|England issue update over injured duo Stokes and Woakes|
|Mancini leaves door open for Buffon´s Italy return|
|Alli calls for England to be ruthless in World Cup opener|
|Tahir rested as Proteas call up uncapped duo|
|Uruguay v Saudi Arabia: Centurion Suarez seeks World Cup redemption|
|Portugal v Morocco: Hat-trick hero Ronaldo hunts stricken Atlas Lions|
|Argentina didn´t draw because of Messi´s missed penalty - Maradona|
|Wenger heaps praise on France star Kante|
|If VAR helps referees, I´m not against that – Australia´s Sainsbury|
|Kimmich questions Germany mentality after shock defeat|
|Roberts to leave Warrington Wolves|
|Australia talent Arzani ready to make the jump from A-League|
|Lewandowski: I can be at the top until I´m 35|
|All Blacks winger Savea confirms Toulon switch|
|Free Fall available for France after red card rescinded|
|South Korea can progress from wide-open group, says Park Ji-sung|
|Gordon called up by Wallabies to replace injured Genia|
|Germany can still win World Cup, insists Werner|
|Man United & Real Madrid talk not affecting Milinkovic-Savic|
|Out-of-contract Ruiz focused on Costa Rica|
|Southgate will not bombard England with last-minute instructions|