Armagh qualified for their first TG4 All-Ireland Senior Semi-Final since 2015 with two Aimee Mackin goals and one each from Kelly Mallon and Catherine Marley denying Mayo a return to the knock-out stages.
Substitute Fiona Doherty hit the net for Mayo 13 minutes after the break, which levelled the scores, but points from Aoife McCoy and Mallon, as well as Marley’s goal in the final minute sees Armagh into a semi-final against defending champions Dublin.
While the winning margin was five points in the end, the teams were level on seven occasions and Mayo were in with a chance of victory for 55 minutes.
Grace Kelly was outstanding for Mayo and she kicked her side into the lead after four minutes – the first of four first-half points she would land from open play.
Aimee Mackin was out in front to kick her side level two minutes later, and when she repeated the feat in the seventh and eighth minutes her side was one ahead, and it was clear she was in top form once more.
At the other end Sarah Rowe was followed everywhere by Tiarna Grimes, but she escaped her clutches in the 11th minute to level matters, but seconds later Armagh kicked on when Mallon finished off a good move down the left flank with a smart, low finish.
Armagh might have expected to build on that goal, but instead Mayo took over totally for 15 minutes. Sinead Cafferky started them on a run of seven straight points with two of her own, while Kelly and Deirdre Doherty all weighed in to put Mayo 0-10 to 1-3 clear.
Peter Leahy’s plan was being executed beautifully with Ciara McManamon and Dayna Finn playing well at the back, but in the blink of an eye Armagh turned the game in their favour again. A Mallon free was followed by a splendid Aimee Mackin point from the right that sailed over off the outside of her boot.
And two minutes from the break Blaithín Mackin sent an accurate diagonal ball into her sister, and Aimee Mackin fired to the net off the ground, which levelled the scores.
But by the half-time whistle Armagh were two points clear when the Mackin sisters added a point each to make it 2-7 to 0-11.
Leahy introduced Fiona Doherty and Mary McHale at half-time, and his changes had an immediate impact. The duo linked up for a McHale score four minutes after the break, but when Mallon sent Aimee Mackin in for her second goal Armagh led by four points.
McHale scored her second point for Mayo, who continued to battle on, and when Cafferky broke a throw ball into Doherty’s path and she scored from a tight angle, Mayo were level again, 1-13 to 3-7.
With the game in the balance McCoy and Mallon kicked points from play, and even though Deirdre and Fiona Doherty kept Mayo in touch, Armagh made sure of the win when Catherine Marley hit the net in the final minute.
Mayo: G Kelly 0-4, D Doherty 0-4 (2f ), F Doherty 1-1, S Cafferky 0-2, S Rowe 0-2, M McHale 0-2, A Gilroy 0-1
Armagh: A Mackin 2-7 (2f ), K Mallon 1-3 (1f ), C Marley 1-0, A McCoy 0-1, B Mackin 0-1
Mayo: L Brennan; D Caldwell, R Durkin, Ciara McManamon; É Ronayne, D Finn, E Brennan; A Gilroy, Clodagh McManamon; G Kelly, S Cafferky (c ), S Rowe; M Reilly, R Kearns, D Doherty. Subs: F Doherty for Clodagh McManamon (h-t ), M McHale for Reilly (h-t ), K Sullivan for Ciara McManamon (40 ), C Whyte for Kelly (46 ).
Armagh: A Carr; S Marley, C McCambridge, S Grey; T Grimes, B Mackin, G Ferguson; N Coleman, A Bellew; C Marley, A McCoy, E Lavery; C O’Hanlon, K Mallon (c ), A Mackin. Subs: T McVeigh for Grey (55 ).
Referee: Jonathan Murphy (Carlow ).