A thrilling late scoring siege from Dublin at Parnell Park secured Mattie Kenny's side a place in the All-Ireland series of the hurling championship, dumping Galway out of the competition in the process.
On a memorable evening in the Leinster SHC at the Donneycarney venue the hosts came from two points down with 66 minutes on the clock to win with a remarkable four points to spare.
They outscored the 2017 All-Ireland winners by 1-5 to 0-2 in that period with captain Chris Crummey scoring the all important 68th minute goal.
Eamon Dillon and Sean Moran were also on the mark with crucial goals which secured a famous win for Dublin and third position in the Leinster table.
But it was a disastrous night for Galway who were nudged into fourth position in the table on scoring difference after Kilkenny's draw with Wexford elsewhere.
The Leinster holders thought they'd done enough to finally break Dublin's resolve when they moved 0-22 to 2-14 ahead but were powerless to prevent that late Dubs onslaught, prompting a pitch invasion at the finish.
It was thrill-a-minute stuff throughout with the sides level a whopping 17 times and eight times in the first-half alone.
The hits were huge in an ultra intense affair and two key players picked up early injuries that forced them off.
Dublin full-back Eoghan O'Donnell made way after just 15 minutes and Conor Whelan trudged off for Galway 11 minutes later.
That left Galway without arguably their two best forwards in Whelan and long-term injury victim Joe Canning, though Canning would eventually come on and strike two points.
Galway's top scorer Cathal Mannion picked up the scoring slack for the westerners and drilled six first-half points, five of those coming from frees.
Whelan grabbed one before making way too while Jason Flynn and Brian Concannon were also on the mark.
But it was virtually score for score as Dublin asked plenty of questions at the other end with Cian Boland on form initially.
O'Rorke and Danny Sutcliffe also pointed and the scores were tied at 0-8 to 0-8 when Dublin grabbed their opening goal in the 29th minute.
It was a trademark poacher's strike from Dillon who sped clear and slotted home with an improvised finish.
But Galway responded with four points in a row from Mannion, Colm Callanan and David Burke to lead narrowly at half-time, 0-12 to 1-08.
It remained just as tight for the majority of the second-half with the game continuing in that score-for-score pattern.
Moran struck Dublin's second goal from a penalty just after the restart but Galway were boosted by Canning's introduction after long-term injury and he hit 0-2.
Galway eventually pulled two points clear and looked to have momentum on their side as they chase a return to the Leinster final.
But Dublin summoned all their courage and spirit to see them off in the closing minutes with that inspirational late flourish.
Dublin: Alan Nolan (0-01); Paddy Smyth, Eoghan O'Donnell, Shane Barrett; Sean Moran (1-00, 1-00pen), Cian Hendricken, Chris Crummey (1-00); Sean Treacy, Tom Connolly; Conal Keaney (0-03), Cian Boland (0-02), Danny Sutcliffe (0-02); Liam Rushe (0-01), Oisin O'Rorke (0-09, 0-05f, 0-01 65), Eamon Dillon (1-01).
Subs: James Madden for O'Donnell (15), Fergal Whitely for Boland (47), Daire Grey for Hendricken (51), Darragh O'Connell for Treacy (57), Ronan Hayes for Rushe (65).
Galway: Colm Callanan (0-01, 0-01f); Darren Morrissey, Daithi Burke, Aidan Harte; Padraic Mannion (0-01), Joseph Cooney (0-01), Gearoid McInerney; Johnny Coen (0-01), David Burke (0-03); Jonathan Glynn, Cathal Mannion (0-09, 0-07f), Adrian Tuohey; Brian Concannon (0-01), Jason Flynn (0-03), Conor Whelan (0-01).
Subs: David Glennon (0-01) for Whelan (26), Joe Canning (0-02) for Tuohey (47), Niall Burke for Concannon (54), Thomas Monaghan for Niall Burke (61), Sean Linnane for Coen (70).
Referee: Cathal McAllister (Cork)