James Motherway’s 40-1 outsider looked like causing an upset when coming through to lead what was a wide-open contest.
The race looked won until Luke Dempsey conjured a dazzling late run out of Spider Web (12-1), to cross the line three-quarters of a length to the good for trainer Tom Mullins and owner JP McManus.
Black Scorpion, the 7-2 favourite, was three and three-quarter lengths away in third, with Full Cry (25-1) fourth.
It was the biggest career success for Dempsey, who said: “I got under the second-last a bit and was slow at it, but he winged the last and he was good and tough and put his head down and battled.
“He fell the last day in Galway and Tom wanted to get his confidence back and he jumped brilliant – he flew home.”
McManus’ racing manager Frank Berry said: “Luke said he missed the last with a circuit to go and he gave him a lovely ride because he had a hard fall at Galway and he sneaked around today.
“He was travelling reasonably well when he fell at Galway and it shook his confidence a bit, but Tom Mullins has done a great job getting him back. We were hoping his confidence would build up during the race and it did and Luke gave him a lovely ride.
“He doesn’t mind that sort of yielding or soft ground and we’ll tip away until it gets heavy – it was a lovely pot to win.”