The Danes came out on top over the brutal 200 laps, with Great Britain winning silver and France taking bronze.
The Danish pair of Lasse Norman Hansen and Michael Morkov won an exhilarating men’s madison race at the Izu Velodrome with a winning total of 43 points.
The 50km race came down to the wire, with Great Britain finishing second just three points adrift after winning the final sprint lap, which earned them the maximum 10 points to leapfrog France. The French were relegated into third place finishing with 40 points.
The British duo of Ethan Hayter and Matthew Walls raced to an early lead where five teams were bunched together at the top of the points table. Great Britain, Denmark, France, the Netherlands and Belgium were all in contention for podium places after 100 laps with just five points between them.
Denmark edged closer as they reached the halfway mark, with Hansen earning the maximum points on the 10th sprint to get them within a point of the British team.
The seasoned Danish pair moved to the top of the pile in what developed into a three-horse race with France and Great Britain in the fold.
Frenchmen Benjamin Thomas and Donavan Grondin briefly moved into the lead thanks to a surge in the 11th, 12th and 13th sprint laps, earning maximum points.
While Denmark only won three of the sprints, they were tactically astute throughout the race, consistently picking up points.
Denmark looked comfortable in the lead as the race wound down, with France behind them and Great Britain sitting in third.
Great Britain moved into the silver position after winning the final sprint, earning them the maximum 10 points.
“I know we won the race but it's hard to believe now. We were the main favourite. Lasse and I won all the medals we ever did together internationally. We know we had a good shot at this but it came very close," said Morkov.
“I knew it 10 laps out because we were leading with 11 points. We had the French with us and the British were off the road, they could maximum (only) take 10 points. So it was kind of a sweet finish even though it was very, very hard because it was our chase, but still I wanted to look at the board in the end to get it confirmed.”