Chris Hoy provided a fitting close to competition at the Velodrome, winning the men's keirin to become Great Britain's gold medal leader and close out the host nation's track cycling dominance at the London Games.
The British won seven out of the 10 events and earned nine medals overall.
On Tuesday, Laura Trott narrowly defeated the United States' Sarah Hammer in the first Olympic women's omnium, while Victoria Pendleton took silver behind Australia's Anna Meares in another women's sprint event marked by relegation.
Hoy's victory put an exclamation mark on it all. He had already won gold in the team sprint, and his win Tuesday gave him No. 6 and moved him past Sir Steve Redgrave for most in Great Britain's Olympic history.
Hoy has seven medals overall and is one behind Henry Taylor's all-time British record. Hoy is tied with fellow cyclist Bradley Wiggins.
But it's unlikely that Hoy, 36, will be back at another Olympics. And if Tuesday was his final Olympic race, he went out on a high note.
"This is the perfect end to my Olympic career," Hoy said. "At Sydney, I was just over the moon with a silver medal. If I'd have stopped then I would have been a happy boy, but to go on to Athens, Beijing and here, I can't put it into words."
German Max Levy took silver behind Hoy, while New Zealand's Simon van Velthooven and the Netherlands' Teun Mulder shared bronze.
Hoy's ending was not quite matched by Pendleton, 31, who was also competing at what's expected to be her final Olympics.
She entered the women's sprint final against Australian Anna Meares as the favorite. Pendleton had showed her form by winning gold in the keirin last week, and has won six of the last eight women's sprint world titles.
Pendleton appeared to win the first of three heats by 0.001 second, but was relegated for crossing lanes. It was the second time she has been relegated at these games, with the first time coming in the team sprint.
"I was really annoyed because I was sure that she touched me and it caused me to move up," Pendleton said. "I cannot believe twice in one competition that I have been relegated, disqualified, it's unheard of."
Pendleton said the decision knocked her confidence, and Meares secured the gold medal in the second heat. She forced Pendleton to lead out the second heat, then came around to win her second Olympic gold and fifth medal overall.
China's Guo Shuang beat German Kristina Vogel for the bronze.
Despite the loss, Pendleton said she was relieved.
"I would have loved to have won in my final race," she said. "At the same time, I am just so glad I am done and I can move on."
In the omnium, Trott and Hammer were tied for the lead after Monday. Hammer gained a slight edge with a win in Tuesday's first event, the individual pursuit. Trott took second.
Hammer widened her lead by placing second in the scratch race behind Australian Annette Edmondson, while Trott came in third. The results gave Hammer 15 points, while Trott had 17 and Edmondson 22.
Trott needed to finish three places ahead of Hammer in the final event, a 500- meter time trial, to win Tuesday.
Trott did just that, turning in a best time of 35.110, just 0.03 seconds faster than Edmondson. The American came across in 35.900 seconds, good enough for fourth.
And with that, the 20-year-old Trott rose into first place ith 18 points, just one ahead of Hammer. Edmondson finished with the bronze.
"I was losing my head a little bit between the events because they weren't going the way I wanted them to," Trott said. "I am so happy."