Britain's Ben Ainslie won gold in the Finn Class Sailing to make it four Olympics in a row where he has claimed a title.
He finished ninth in the final race but it was enough to beat his nearest rival Denmark's Jonas Hogh-Christensen.
Ainslie had trailed throughout the regatta and only went to the top of the standings in Weymouth after the 11th and last race.
He said: "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.
"This was the time to do it, in front of a home crowd. It's just been an amazing experience this Olympics and I can tell you that listening to a crowd like that makes a difference.
"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.
The 35-year-old, who also won silver in 1996, overtakes Denmark's Paul Elvstrom as the sport's most successful sailor.
Before Ainslie's victory there was more British success with a silver medal in the Star Class for Iain Percy and Andrew Simpson.