Mayo held off a late rally from Cork to run out 1-19 to 2-15 winners in the second of today's quarter finals at Croke Park.
A superb Aidan O'Shea goal four minutes from time looked to put the game beyond the Rebels, but Brian Hurley went straight down the field, burying the ball past Rob Hennelly to keep Cork in touch.
Mayo made sure of their place in the 24th August semi final with big scores from Donal Vaughan and Lee Keegan late in the game.
Kerry reached the last four with a 1-20 to 2-10 win over Galway inthe firts game of the day at GAA headquarters.
James O'Donoghue got the opening goal of the game for Kerry with 13 minutes played, but a superb solo effort from Tom Flynn found the net for the Tribesmen to keep them in touch at the break.
Michael Lundy netted for Galway after half-time to keep the pressure on, but a total of 15 wides ultimately cost Galway dear.