Great Britain finished the Olympic regatta as the most successful sailing nation for the second straight Games.
The team won two gold medals, one silver and two bronzes to emulate the five-medal haul from Sydney in 2000.
GB have now won 19 sailing gold medals since the 1900 Olympic Games, one more than the USA.
British sailing boss Stephen Park said:
"We ended Sydney with five medals and we knew that was exceptional, but we've repeated it so I'm extremely happy."
The first gold medal for Great Britain was won by Shirley Robertson, Sarah Ayton and Sarah Webb in the Yngling class. It was Robertson's second straight gold after winning the single-handed Europe class in Sydney.
Finn sailor Ben Ainslie won the team's second gold after battling from the disappointment of a disqualification in race two on the first day.
From left to right: Rogers, Glanfield, Ayton, Robertson, Webb
The three-time Finn world champion also won gold four years ago in the smaller Laser class dinghy, to add to his silver in the Laser in Atlanta.
Following Ainslie's triumph, Nick Rogers and Joe Glanfield won silver in the 470 men's class, making up for the frustration of finishing fourth by one point in Sydney.
Windsurfer Nick Dempsey bagged bronze with his final race in the Mistral class, while 49er pair Chris Draper and Simon Hiscocks settled for a bronze after challenging for gold. Hiscocks won silver in Sydney with helm Ian Barker.
In the other men's classes, Laser sailor Paul Goodison was fourth, Sydney Finn champion Iain Percy and Steve Mitchell were sixth in the Star and Leigh McMillan and Mark Bulkeley finished 13th in the the Tornado catamaran.
In the women's events, windsurfer Natasha Sturges was ninth, 470 duo Christina Bassadone and Katherine Hopson were seventh and Europe sailor Laura Baldwin came 23rd.