Tony McCoy made a triumphant one-off return to the saddle with victory aboard Gannicus in the Clipper Logistics Leger Legends Classified Stakes at Doncaster.
The 20-times champion jump jockey, who retired in April, delighted his legion of supporters by producing a fairytale result.
McCoy had been persuaded by Jack Berry to take part in the straight-mile contest in aid of the Northern Racing College and the Injured Jockeys Fund's Jack Berry House.
The legendary rider gave racing the best possible ending to the story as he steered 7-2 favourite Gannicus, trained by former jump jockey Brendan Powell, home in front.
McCoy had his mount tucked away in the early stages before making his move at halfway and taking the lead two furlongs out.
Having grabbed the stands' side rail, McCoy kept Gannicus up to his work and the four-year-old galloped all the way to the line to score by two lengths from 16-1 shot Next Stop, partnered by Classic-winning rider Billy Newnes.
Big Storm Coming (20-1) was a head away in third in the hands of former jump jockey and now racing presenter Luke Harvey.
McCoy said: "It was never in doubt. Everything went to plan, although it always does when you win.
"He travelled and we know he stays well. I'm having a bit of a blow now but it's for a great cause.
"Fair play to Jack Berry. He's done all the hard work and the Injured Jockeys' Fund are benefiting, but Jack bullied me into it!"