Britain's Ben Ainslie became the most decorated Olympic Games sailor in history on Sunday when he captured a fourth consecutive gold medal before announcing his intention to quit.
The 35-year-old, who also won silver in 1996, overtakes Denmark's Paul Elvstrom, who won four golds from 1948 to 1960 as the sport's most successful sailor.
Ainslie made sure of his place in the record books when he finished ninth in Sunday's final race of the Finn class, pushing Denmark's Jonas Hogh-Christensen into the silver medal position.
France's Jonathan Lobert claimed bronze.
But despite his dramatic triumph after a tense week of sailing, Ainslie said it was unlikely he will still be in a boat at the 2016 Olympics in Rio.
"You can never say never but I don't think I can sail one of these again, it's killing my body so I don't think you will see me in Rio. But it's the best way to bow out at a home Olympics," said the Briton.
"After six races I was in a bit of trouble, thankfully I turned things round and got it right when it counted. This was one of the hardest courses I have raced on and I don't want to do anything like that again."
Sweden's Max Salminen and Fredrik Loof won the Star gold medal, denying British hopes Iain Percy and Andrew Simpson.
Percy and Simpson, who teamed to win the two-hand Star class in Beijing four years ago, settled for silver ahead of Brazilians Robert Scheidt and Bruno Prada.
Loof and Salminen went into the medal race, the final race including the top 10 teams, in third place behind the British and Brazilian duos.
Although he was unable to capture gold, Percy added a silver medal to a resume that also includes gold in the Finn class in 2000 as well as his Star triumph with Simpson four years ago.
"It was all good. Unbelievable. We had a dream race," said Loof. "This is my sixth Olympics. This is such a relief, an incredible feeling. This was my time."