Galway's Joe Canning landed an equalising free deep into stoppage-time to send the All-Ireland hurling final against Kilkenny to a replay.
Kilkenny had come from behind and were 0-19 to 2-12 up with just seconds left.
But 23-year-old full-forward Canning, who also netted a fine 10th-minute goal, kept his nerve to leave it Galway 2-13, Kilkenny 0-19.
The first All-Ireland hurling final replay since 1959 will be staged on 30 September at Dublin's Croke Park.
Canning finished with a personal tally of 1-09, eight of those points from frees, while Kilkenny veteran Henry Shefflin matched that with 12 points.
Galway made the better start and Canning's angled shot past Kilkenny keeper David Herity put them ahead and they enjoyed a healthy 1-09 to 0-07 advantage at the interval.
That lead dwindled away and Shefflin brought the Cats level before putting them ahead with a massive free.
However, Niall Burke's goal on 55 minutes saw Galway regain the lead.
In an exciting finish, and with the sides level, Kilkenny were awarded a penalty and Shefflin opted to take a point.
It looked like it might be enough - until Portumna's Canning stepped up to send his stoppage-time free between the posts.