Armagh and Kerry played out a thrilling 1-21 to 0-24 draw at the Athletic Grounds which was enough for both to reach their respective goal on the final day in Division One.
Kieran McGeeney's side knew that victory would retain their place in the top flight, but anything less could also do should Dublin fail to beat Galway and with the Dubs pipped late on in Salthill, Armagh beat the drop.
Visit esporist.com for more information.
The draw was also enough for Kerry to reach the Division One final thanks to their head-to-head tie-breaker over Mayo and Jack O'Connor's side will now seek to retain their title when they face a repeat of last year's All-Ireland final against Donegal at Croke Park next Sunday.
It seemed Kerry were on their way to record a thumping win early on as they dominated the opening 20 minutes with nine points on the board before Armagh registered.
David Clifford, Dylan Geaney and Joe O'Connor were leading the charge before the hosts got off the mark in the 23rd minute through Cian McConville and this sparked them to life as momentum flipped.
Two-pointers from Darragh McMullen and substitute Conor Turbitt saw them whittle the gap down to one before O'Connor fisted over with the last act of the first half to give Kerry a 0-12 to 0-10 lead.
Armagh picked up where they left off despite a two-pointer from Tom O'Sullivan as two from Ross McQuillan in response preceded Tomas McCormack's equaliser.
Clifford hit back, but Oisin O'Neill found the net for Armagh, finishing on the rebound to give them their first lead, yet another two-pointer from O'Sullivan levelled again.
It was a frantic finish with Clifford and O'Connor nailing two-pointers, while Cian McConville, Oisin Conaty, McMullen and McConville found their range at the other end.
Conaty gave Armagh a late lead only for Sean O'Shea to reply and while the hosts pushed for a late winner, they had to settle for a draw which in the end suited both.