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.
|Kovac, Robben praise Augsburg after draw|
|Angels star Ohtani to undergo Tommy John surgery|
|Simeone tips Gimenez to be fit for Madrid derby|
|Smith on his NBA Finals miscue: People make mistakes all the time|
|Rams CB Talib to have ankle surgery|
|Cousins ´feeling a lot better´, still unsure when he´ll return|
|I knew we´d be in trouble with Jones on penalties – Mourinho|
|Coyotes forward Galchenyuk expected to miss opener|
|Guardiola won´t compare Foden to Iniesta|
|Lampard shell-shocked as Derby win at Old Trafford|
|Ryder Cup 2018: USA celebrities take the honours|
|Manchester United´s torrid penalty shoot-out run continues against Derby|
|Guardiola: Foden already a great, great player|
|Atletico Madrid 3 Huesca 0: Rojiblancos cruise ahead of Madrid derby|
|EFL Cup: Lampard dumps out Mourinho, Burnley lose at Burton Albion|
|Mourinho denies Pogba row despite stripping midfielder of vice-captaincy|
|Fabinho situation not complicated, insists Klopp|
|Manchester United 2 Derby County 2 (Derby win 8-7 on pens): Lampard heaps pressure on Mourinho|
|Afghanistan snatch tie after Shahzad pummels India|
|Inter 2 Fiorentina 1: D´Ambrosio maintains Nerazzurri revival|
|Oxford United 0 Manchester City 3: Foden stars as EFL Cup holders cruise into round four|
|Cousin takes Gabon post after Aubameyang rejection|
|Bayern Munich 1 Augsburg 1: Neuer error costs champions|
|Paris Saint-Germain must be a Champions League force to help Neymar - Baptista|
|Salgado warns of ´war´ in Spanish football|
|Cech deserves Arsenal place, says Seaman|
|Halep and Garcia among seeds to fall in Wuhan|
|F1 Raceweek: Mercedes taking no comfort in points advantage|
|Benitez charged by FA for referee comment relating to Zaha treatment|
|Cibulkova dumps out hampered Halep in Wuhan|
|Mourinho questions his players amid reports Pogba won´t captain United again|
|European Ryder Cup diary: Fleetwood´s hair delights Poulter|
|USA Ryder Cup diary: Tiger´s roaring reception, McEnroe´s bold prediction|
|Loans to be limited under new FIFA proposal|
|Prolific Nadolo signs new Montpellier contract|
|Modric? For us, Messi is the best – Valverde|
|Murray makes winning start in Shenzhen|
|Mickelson would cherish first victory on European soil|
|Hodge hoping pressure proves too much for South Africa|
|Woodward in show of support for under-fire Mourinho|
|Mickelson jokes he wants ´a shot a side´ from Tiger in Thanksgiving showdown|
|Reed: Captain America is a villain in Europe|
|Duminy to captain Proteas as Elgar replaces injured Amla|
|No Tottenham timeline for Lloris, Vorm returns|
|Woods ready for ´awesome environment´ on Ryder Cup opening hole|
|Tony Bellew determined to prove doubters wrong against Oleksandr Usyk|
|Tuchel explains why he likes Neymar at number 10|
|Manchester United smash revenue record but profits down|
|Furyk downplays Ryder Cup pairings talk, says Tuesday is about individuals|
|Rejuvenated Tiger out to improve poor Ryder Cup record|
|Saunders fined £100,000 for ´sickening´ online video|
|Hazard can reach his full potential with Sarri´s Chelsea - Zola|
|Ryder Cup heading back in Europe´s direction, says Niall Horan|
|Wow! Klopp hails Sarri´s Chelsea transformation|
|Giovinazzi to partner Raikkonen at Sauber in 2019|
|Bjorn backs ´phenomenal´ Rahm to continue trend of Spanish success|
|Durant in no rush to decide Warriors future|
|Rossi to face anti-doping hearing|
|Mignolet to return for Liverpool against Chelsea|
|Premier League ´interesting´ for Germany boss Low|
|Wilder wins Twitter vote to be Joshua´s next opponent|
|BREAKING NEWS: Isco an El Derbi doubt due to appendicitis|
|Juventus won´t rest Ronaldo ahead of Napoli clash|
|Slater cleared to play in NRL Grand Final|
|Top seed Begu sent packing in Tashkent|
|This isn´t my last hurrah in Ryder Cup, insists Poulter|
|Barba back in NRL with North Queensland Cowboys|
|Arsenal wait on Mkhitaryan and Sokratis|
|All Blacks wary of Pumas pack ahead of Buenos Aires Test|
|Ryder Cup has special place in Pep Guardiola´s heart, says Fleetwood|