And for much of today's race it was going to script. Diniz broke away early and opened up a 90 second lead on a chasing pack by the 30km mark. The race looked his.
But the health problems which have plagued his career struck again as he momentarily lost control of his bowels and soiled himself.
Diniz was in a bad way and collapsed on the track. He managed to regain his feet and push on but after being caught by the chasing pack he hit the deck again.
It ruled out any chance of victory but the French veteran battled on valiantly to finish eighth behind race winner Matej Toth, of Slovakia. He was hailed on social media for his brave effort.
Australian Jarred Tallent looked to have his second Olympic gold medal in hand when he surged clear at the 40km mark but with just over 2km to go the fairytale script took on a new ending.
Toth came out of the chasing pack and gobbled up Tallent who at one stage had got out to a 20-second advantage.
The rest, as they say, is history.