A sublime Denis Behan goal won the FAI Ford Cup for Cork City before a crowd of just 10,000 at a rainy and windswept RDS.
The result was no more than Cork deserved as they were the better side, defending well against the wind early on before controlling much of the game, particularly in the second half.
The only goal came on 60 minutes and was worthy of winning any match, never mind a cup final.
Skipper Dan Murray sent John O'Flynn away down the left with a ball over the top.
The unmarked Behan arrived to meet the perfect cross and score with a classic diving header.
Cork should have added to their winning margin late on but were guilty of two dreadful misses.
Behan should have got a second on 81 minutes but missed a real sitter as be blasted against the bar from Leon McSweeney's cross when it seemed easier to score.
Liam Kearney then scampered away down the right to pull the ball back for O'Flynn who shot off the bar with only Shay Kelly to beat.
Relegated Longford's frustration go the better of them a minute from time when right-back pat Sullivan was sent-off for a foul on Leon McSweeney, his second booking.
Longford played with the strong wind in the first half and came close inside two minutes when Dessie Baker's free-kick was just over the bar after an early foul by City skipper Murray on Town dangerman Dave Mooney.
Baker was there again ten minutes later, getting on the end of captain Damien Brennan's long diagonal ball, but the shot was sliced wide.
Town had undoubtedly started the better and within a further minute Baker set-up Daire Doyle who got the first shot on target with a 20-yard drive, which did not really test Michael Devine.
But Devine had to show his agility on 15 minutes when getting down really well to hold a goal bound toe poke from Jamie Duffy following Robbie Martin's super cross in from the left.
Mooney got his first real sniff of goal on 18 minutes when he flicked Sullivan free-kick from long range into the arms of Devine.
Cork battled against the wind as the half wore on and had two chances in quick succession just past the half hour mark.
A mistake by Brennan, whose clearance struck team-mate Kevin Doherty, looked to put Behan in on goal. Though Shay Kelly was off his line quickly to clear, the ball ran for Kearney who chipped just wide.
A burst from midfield by Colin Healy within a minute had Behan in on goal with Sullivan getting back well to make a terrific tackle.
Cork City: Devine; Lordan, O'Callaghan, Murray, Woods (O'Brien, 67); McSweeney, Gamble, Healy, Kearney (Farrelly, 85); Behan, O'Flynn.
Longford Town: Kelly; Sullivan, Brennan, Doherty, Prunty; Duffy (Reilly, 78), Doyle, Rutherford, Martin; Mooney, Baker (Wexler, 55 mins.).
Referee: Dave McKeon (Dublin).