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.
|Murray to meet Wawrinka at Eastbourne|
|Nigeria goalkeeper Ikeme in remission after year-long cancer battle|
|Lukaku breaks Belgium record against Tunisia|
|Iran v Portugal: Team Melli bullish over qualification chances|
|Mauresmo to be France´s first female Davis Cup captain|
|Maradona angry at Argentina World Cup performances|
|Ireland cap stunning season with series win over Wallabies|
|Uruguay v Russia: Selection posers for already-qualified pair|
|Federer scraps his way to yet another Halle final|
|Lunin rejected ´3,000 offers´ to join Real Madrid|
|On your bike! Iceland physio sent home after cycling accident|
|Not just Real Madrid interested in Fekir, says Aulas|
|France frustrated by officials again as All Blacks complete sweep in style|
|Jose Enrique reveals brain tumour surgery|
|The referee was a disaster, fumes Matic|
|Lakmal to captain Sri Lanka in Chandimal´s absence|
|Alli back in England training|
|McIlroy, Watson plotting moves as Harman leads Travelers Championship|
|Tearful Neymar is a joyful boy, says Jesus|
|Ruiz: Coutinho has the same quality as Neymar|
|Kovacic announces intention to leave Real Madrid|
|Red Sox edge Mariners in 34-hit extravaganza|
|Marquez asks Mexico fans to ´let them rest´|
|Fabregas hopeful of Spain recall|
|Milinkovic-Savic plays down Juventus speculation|
|Rashford inspired by Ronaldo|
|Messi is not a leader, he is no Ronaldo, claims Petit|
|Better than Ballack? Hodgson backs Loftus-Cheek to shine against Panama|
|Svitolina and Garcia suffer upsets|
|Walker responds to Ferdinand criticism|
|Djokovic still hungry for more after reaching major milestone|
|Ellis drop goal earns Castleford dramatic win|
|Nigeria hero Musa unsure on Leicester City future|
|X marks the spot - Granit´s rocket sets World Cup first|
|Xhaka and Shaqiri follow the script as Serbia are derailed|
|Chandimal appeal against ban rejected|
|Real Madrid sign teenage goalkeeper Lunin|
|Serbia 1 Switzerland 2: Shaqiri strikes late to clinch crucial comeback victory|
|Suspended Srna joins Serie A side Cagliari|
|Cilic sets up Kyrgios showdown as Djokovic reaches milestone|
|Kudla up next in Federer´s Halle ´fight´|
|Assistant Farbrace to take charge of England for T20 games|
|Hummels hoping to be fit for Sweden clash|
|Hend surges clear as Fleetwood struggles again in Pulheim|
|Giant-killers Mexico embrace sudden weight of expectation|
|Roma complete €17.25m Kluivert deal|
|Pakistan name strong group for Zimbabwe tour|
|Choc Horror: Boullier insists McLaren do not hand out Freddos as bonuses|
|Neymar: Not everyone knows what I went through|
|Poland v Colombia: No time to dwell on regrets, warns Aguilar|
|Musa shows Messi how it´s done to set up critical Argentina showdown|
|Nigeria 2 Iceland 0: Musa brace boosts Super Eagles & Argentina|
|McLaren and Renault open to Ricciardo talks|
|We must win, we have no other choice - Maaloul|
|Germany will respond against Sweden, insists Low|
|´The best among all Asians´, South Korea trust in Son against Mexico|
|Stalin´s bunker an unlikely site for Russia´s World Cup charm offensive|
|England v Panama: Rashford tipped to start as Southgate´s side aim for last 16|
|Erasmus wary of ´wonderful´ Cipriani|
|Hummels to miss Germany-Sweden, confirms Low|
|Murray accepts Eastbourne wildcard|
|St Petersburg madness lines up Neymar and Brazil with heroes of the past|
|Martinez happy to be ´boring Belgium´|
|Japan v Senegal: Squeaky clean Group H rivals eyeing huge step towards last 16|
|Argentina team the worst in history - Ardiles|
|Ravanelli upsets wife by taking Arsenal job...in Kiev|
|Federer moves a step closer to 10th title in Halle|
|Brazil 2 Costa Rica 0: Coutinho and Neymar score in stoppage time to snatch win|
|Andersson: Sweden embracing big occasion as bug sweeps through team|
|LeBron in ´good dialogue´ with Cavaliers|