Armagh have been relegated to Division Three of the Football League despite beating Derry at the Athletic Grounds.
Kieran McGeeney's men would have stayed up if Tyrone had beaten Fermanagh or Laois had defeated Meath.
But both games went against the Orchard County on an exciting final day of fixtures.
Fermanagh drew with Tyrone and Meath secured victory which meant a three-way tie on six points and Armagh ended up going down on points difference.
- Listen to Pete McGrath's reaction as Fermanagh avoid drop
- Boss Hyland wants more from promoted Cavan
- Monaghan fight back to escape relegation
Laois were the other county making the drop to Division Three.
Cavan, who beat Galway at Breffni Park, go up to Division One along with the already-promoted and undefeated Tyrone.
It was a bitterly disappointing afternoon for Armagh. If Meath had fallen to Laois, McGeeney's men would have stayed up through their head-to-head with Fermanagh.
But the three-way tie sealed their fate and the six-point victory over Derry counted for nothing.
A Micael McKenna goal just before half-time gave Armagh a 1-12 to 0-7 interval advantage, but Derry fought back through James Kielt, Ryan Bell and three Mark Lynch frees.
However Armagh, boosted by a string of Ethan Rafferty frees, pulled away to wrap up the victory.
Exciting finish as Fermanagh survive
Fermanagh fans endured a tense final few minutes in Enniskillen as their match with Tyrone hung in the balance.
Pete McGrath's men had been a point down at the interval after Barry Tierney had netted the only goal for the Red Hands.
Tomas Corrigan's black card did not help matters, but soon after that a similar fate befell Tyrone lost skipper Sean Cavanagh.
Fermanagh sub Pat Cadden floated over a point to edge the hosts ahead and Ronan O'Neill levelled with a free.
There were still several minutes to play but there were no more scores and McGrath's men survived on points difference.
Allianz Football League results
Kerry 0-20 1-12 Cork
Monaghan 1-10 1-09 Donegal
Mayo 1-19 1-16 Down
Roscommon 1-12 1-13 Dublin
Armagh 1-18 0-15 Derry
Cavan 1-16 1-12 Galway
Fermanagh 0-12 1-09 Tyrone
Laois 1-9 0-18 Meath
Kildare 0-22 1-14 Clare
Limerick 0-13 1-16 Offaly
Longford 0-13 0-11 Westmeath
Sligo 0-18 3-09 Tipperary
Antrim 0-12 1-09 Louth
London 1-10 2-10 Wicklow
Waterford 0-10 1-06 Leitrim
Wexford 2-17 2-06 Carlow