Cork will face Down in the Allianz Football League Division 1 semi-finals after beating All-Ireland champions Dublin 1-12 to 0-12 at Páirc Uí Chaoimh.
The wind-backed Rebels roared into an early lead with Aidan Walsh deflecting a high ball to the net for a 20th minute goal.
Points from Michael Darragh Macauley and Diarmuid Connolly helped the Dubs respond, but they were 1-08 to 0-05 adrift at half-time. Bryan Cullen and Kevin McManamon added further scores, but Cork held on with wayward shooting letting Dublin down.
Conor Counihan's men are chasing back-to-back league titles and Cork certainly showed the greater urgency in the opening quarter.
They pushed 0-05 to 0-01 ahead by the 16th minute with Donncha O'Connor (free) and corner forward Walsh setting them on their way.
Pat Gilroy had made a number of changes to the Dublin side that lost badly to Mayo last weekend, and they were not having the desired effect.
The visitors took their time to settle and full-forward Diarmuid Connolly opened their scoring account at the second attempt in the 16th minute, having missed an earlier kickable free.
Cork were proving much more potent at the other end of the pitch. Their quick movement, crisper passing and accurate shooting helped them build a decent lead with Fintan Goold, O'Connor and Colm O'Neill adding further points.
O'Connor's second point was the best of the lot such was the quality of the shot and the build-up play from defender Eoin Cadogan who powered forward from centre-field.
There was a touch of good fortunate about the only goal of the game. Goold, who was growing in influence, played a high ball into the danger area, both Walsh and Rory O'Carroll contested it and the ball nudged off the former to finish in Michael Savage's net.
However, Counihan's charges took their foot off the gas for the remainder of the first half. They allowed Dublin to get themselves into the game with a run of four points including efforts from Cullen and McManamon.
A timely brace from Paul Kerrigan ensured Cork still had a degree of comfort at the break with the cushion now standing at six points - 1-08 to 0-05.
The comeback was defintely on for Gilroy's outfit when they strung together four points at the start of the second half with Cullen, Eamon Fennell, McManamon and Macauley all on target.
Indeed, Dublin could and perhaps should have had a goal on the board. McManamon had a sight of the goal but opted to take the safer option, and the hard-working Cullen almost latched onto a through ball from Craig Dias which would have put him through on goal.
It was better stuff from Dublin but they were still playing well below par and they lacked the necessary clinical edge, with Connolly again failing to convert a free from kickable range.
Cork were not playing much better but they got back on the scoresheet with a free from Colm O'Neill and then Connolly and Pearse O'Neill swapped scores, with the midfield sector now much more evenly balanced.
Dublin got into decent positions but again their shooting let them down and their final two points arrived from the boot of free-taker Connolly, one of which came from play.
Colm O'Neill brought his own tally to 0-04 as the game laboured towards a listless end, and a second point of the afternoon from midfielder Pearse O'Neill topped of Cork's fourth victory of the campaign.
CORK: K O’Halloran; E Cotter, M Shields, R Carey; G Canty, E Cadogan, S Kiely; A O’Connor, P O’Neill (0-02); F Goold (0-01), P Kerrigan (0-02), P Kelly; C O’Neill (0-04, 0-02f), D O’Connor (0-02, 0-01f), A Walsh (1-01).
Subs used: B O'Driscoll for Walsh (31-33 mins, blood sub), P Kissane for Kiely (half-time), N Murphy for A O'Connor (60), N O'Leary for Cadogan (65), J O'Sullivan for Cotter (67).
DUBLIN: M Savage; R O’Carroll, P McMahon, C O’Sullivan; J Cooper, J McCarthy, K Nolan; S Murray, E Fennell (0-01); D Byrne, MD Macauley (0-02), B Cullen (0-02); C Dias, D Connolly (0-05, 0-02f), K McManamon (0-02).
Subs used: D Bastick for Murray (32 mins), B Cahill for Byrne (half-time), P Brogan for Nolan, D Kelly for Dias (both 62), R McConnell for Fennell (67).
Referee: David Coldrick (Meath)