A team of National Hunt jockeys led by Sir Anthony McCoy beat their Flat counterparts in a charity showjumping contest on Friday night.
The Markel Champions Challenge at Olympia.was in aid of the Injured Jockeys Fund and as always proved a well-received spectacle at the London International Horse Show.
With five riders each in the relay, the jump jockeys clocked a combined best-four total of 163.66 seconds to edge out Dettori's flat rivals, who could only manage 172.74secs.
John Francome had opened up with a clear round, the seven-time champion jump jockey, and former junior showjumper, running through at 39.52 seconds.
Peter Scudamore - who won the title eight times, including one shared with his rival and good friend Francome - knocked one fence down for a three-second penalty.
Richard Dunwoody, who won the King George VI Chase four times, twice on grey Desert Orchid, had two faults, before Irishman Charlie Swan - who guided Istabraq to three Champion Hurdle crowns - went clear in 36.66 seconds.
McCoy then clipped just one fence to record 41.79 and set a testing target for the flat jockey squad, which was coached by Olympic gold medallist Nick Skelton, who rode Big Star to glory in Brazil last summer.
Jim Crowley, the 2016 champion Flat jockey, put down two fences before two-time Epsom Derby winner Ryan Moore added a one-fault time of 43.43.
Ireland's Richard Hughes - champion jockey three times between 2012 and 2014 before becoming a trainer - followed, but picked up a nine-second penalty.
Compatriot Jamie Spencer, who rode 180 winners to claim the 2005 British title, then knocked over two fences.
Dettori, celebrating his 47th birthday and looking to follow up the 2016 success over Richard Johnson's squad, was left with too much left to do in the finale, despite his clear round in 40.44.
Reflecting on the event, the Italian said, in an interview broadcast by BBC Sport: "I am so upset I got beat by Sir AP McCoy, but we gave it a good go and enjoyed ourselves.
"Thanks to everyone for turning up, we loved it."
Related links