Jason Kenny equalled Sir Chris Hoy’s British record of six Olympic gold medals by winning a dramatic keirin.
The race twice had to be restarted because of infringements before Kenny, 28, won his third gold in Rio after team sprint and individual sprint wins.
Kenny has won seven medals in total, his one silver coming when he finished second to Hoy in the individual sprint at the 2008 Beijing Olympics.
GB’s track cyclists won six golds, four silvers and one bronze in Rio.
“I’m proud to be part of the team’s Olympic success and doing my bit,” said Kenny afterwards.
“It is pretty mental [matching Sir Chris Hoy]. I was there in Beijing and knew he was special and as the years have gone by I appreciated how amazing he was then.
“To do the same is amazing.”
Kenny has helped Britain win the team sprint at the last three Olympics. In addition, he has won two individual sprints and now has his first keirin title.
He was cheered on by his fiancee Laura Trott, who earlier had defended her omnium title to become the first British woman to win four Olympic gold medals.
The couple have 10 Olympic gold medals between them.
Kenny’s victory was Britain’s 19th of the Rio Olympics – equalling the gold haul from Beijing – and the 49th British medal overall.
Matthijs Buchli of the Netherlands, took silver and bronze went to Malaysia’s Azizulhasni Awang.
‘I didn’t realise how special he was going to be’
Six-time Olympic champion Sir Chris Hoy: “That was a test of character. You can do all the reps in the gym but it is character and it is just fantastic to see the smile on his face. It is a really special moment.
“When he came on the team before Beijing we knew he was special but I don’t think we realised how special he was going to be.”
Subscribe to the BBC Sport newsletter to get our pick of news, features and video sent to your inbox.