John Murphy hit the match-winning point at the end of extra-time as Offaly beat Dublin 1-29 to 2-25 in the quarter-final of the Under-20 Leinster championship.
The match finished level after 60 minutes had been played and Offaly went on to dominate the early stages of additional time to open up a seven-point lead.
Dublin dragged themselves back into the contest with a late Matthew Dunne goal before Cian Derwin levelled matters in the final minute of the added time.
But a late, late free handed Offaly a chance to seal the match and Murphy made no mistake to secure a one-point victory for the Faithful County.
Scorers - Offaly: Cathal Kiely 0-20 (0-16f, 0-2 65), Conor Langton 0-4, Conor Quinn 1-0, John Murphy 0-2 (0-1f), Ryan Hogan, Killian Sampson, David Nally 0-1 each.
Dublin: Cian Derwin 0-16 (0-13f), Billy Ryan 1-2, Matthew Dunne 1-0, Kevin Desmond 0-2, Kevin Burke, Iain O'hEithir, Diarmaid O’Floinn, Luke McDwyer, Liam Murphy 0-1 each.
Offaly: Eamonn Cleary; Conor Butler, Dara Maher, Ciaran Burke; Ryan Hogan, Ross Ravenhill, Killian Sampson; Joey Keeneghan, David Nally; Brian Duignan, Barry Kealey, Cathal Kiely; John Murphy, Cillian Ryan, Conor Langton
Subs: Conor Quinn for Kealey (51), Kealey for Ryan (53), Lochlann Kavanagh for Nally (74), Sean Beatty for Sampson (78), Cathal Brady for Duignan (79), Ryan for Kiely (82)
Dublin: Conor O’Donoghue; Andrew Dunphy, Tommy Kinanne, Jack Fagan; Iain Ó hEithir, Lee Gannon, Kevin Burke; Michael Conroy, David Keogh; Diarmaid Ó Floinn, Luke McDwyer, Cian Derwin; Billy Ryan, Sean Currie, Kevin Desmond
Subs: Pearse Christie for Conroy (40), Liam Murphy for Desmond (53), Alex O’Neill for O’hEithir (57), Matthew Dunne for Keogh (60), Eoin Carney for McDwyer (69), James O’Connell for Ryan (78)