Dublin will play Mayo and Tyrone will take on Kildare in the NFL semi-finals, as a result of a dramatic day of action.
Mayo came from behind to defeat reigning champions Cork by 0-11 to 0-10 at Pairc Ui Chaoimh.
Cillian O'Connor steered over a late winning free for the westerners, who had started the day with the threat of relegation hanging over them.
Daniel Goulding, Fintan Goold and Aidan Walsh shot the Rebels into a 0-7 to 0-1 lead, but second half scores from Donal Vaughan, O'Connor and Kevin McLoughlin helped Mayo claw their way back, before they stole a late winner.
Kerry retained their Division One status after posting their best performance of the league with a 1-16 to 1-12 win over Tyrone at Healy Park.
Tomas O Se's 32nd minute goal, and a seven points tally shared between Declan O'Sullivan and Kieran Donaghy, sent wind-assisted Kerry in with a 1-13 to 0-5 interval lead
Stephen O'Neill netted for Tyrone, and points from Conor Gormley and Conor Clarke and a Mark Donnelly goal narrowed the gap from 12 to one.
All-Ireland champions Donegal were relegated to Division Two, along with Down.
Dublin's Paul Mannion scored a late equaliser to give Dublin a 1-10 to 0-13 draw with Donegal and secure top spot in the league table for the Dubs.