Spain's David Meca unleashed a fast finish over the final 100m to claim the men's 25km open water crown at the World Swimming Championships.
Meca is fighting to clear his name after a drugs ban
Meca, who once served a one-year ban after testing positive for nandrolone, edged out Australian Brendan Capell to win in five hours 21.4 seconds.
Bulgaria's Petar Stoychev, who was third in the 10km, claimed his second bronze of the competition in Montreal.
Meca is now trying to clear his name at the European Court of Human Rights.
The Spaniard failed a drugs test at a World Cup event in 1999 but saw his two-year ban reduced on appeal.
During his time out of competition Meca carried out stunts such as swimming between Alcatraz and San Francisco with irons attached to his feet.
Since returning to the sport, Meca has won silver in the 25km open water event and a bronze in the 10km at the 2003 Worlds.
Olympic champion Hu Jia continued his form at the Worlds, winning the 10m platform diving title.
Cuba's Jose Antonio Guerra earned the silver and bronze went to
Russian Gleb Galperin.