London: Usain Bolt wrote himself into the Olympic history books with a third gold at the London Games as part of a world record-setting Jamaican 4x100m relay team.

Special Coverage: London Olympic 2012

Medal Tally Of London Olympics 2012

In an electric programme to bring the track and field at the Olympic Stadium to an end, Bolt's anchor leg in a new record of 36.84 seconds was preceded by Briton Mo Farah clinching a distance double that sent the 80,000 crowd into delirium on Saturday.

Having become the first ever athlete to have successfully defended 100 and 200m titles at the Olympics, Bolt made short work of American Ryan Bailey on the final leg, hurtling across the line with a flourish.

The Jamaican quartet of Nesta Carter, Michael Frater, double Olympic sprint silver medallist Yohan Blake and Bolt scorched to 36.84sec, beating their previous record of 37.04sec set in the 2011 worlds in Daegu.

The US team took silver and Trinidad and Tobago bronze.

Bolt has now won seven titles in the eight individual events in which he has competed since the 2008 Beijing Games, his one blip coming when he was disqualified for a false start in the 100m final in the 2011 Daegu worlds.

The world record holder in both the 100 and 200m was also part of the Jamaican relay team that won all four golds on offer in that time.

"It's always a beautiful thing to end on this note," said Bolt. "Last year we did it at the world championships, this year we did it again so for me it's a wonderful feeling to end on a high note. It was a great championships, I'm happy."

The scene was set for Bolt's fairytale ending to Games by a stunning performance in the men's 5,000m by Farah, who added that title to the 10,000m he won seven days earlier.

The Somalia-born runner timed his kick to perfection to cross in 13min 41.66, fighting off Ethiopia's Dejen Gebreskel, who took silver in 13:41.98, and Kenya's Thomas Longosiwa, who claimed bronze (13:42.36).

Farah is only the seventh man to achieve the 5,000m-10,000m double, adding his name to an illustrious list of runners which includes Czech Emil Zatopek, Finland's Lasse Viren, Ethiopians Miruts Yifter and Kenenisa Bekele.

"I'm just amazed - two gold medals, who would have thought that?" said Farah, who moved to Britain at the age of eight after being born in Somalia and spending some years in Djibouti.

"I got great support from the crowd. It means a lot to me and those two medals are obviously for my two girls who are coming," he said of the twins his wife is expecting.

The US women made up for the men finishing second to Jamaica in the men's relay by claiming their fifth straight 4x400m title, destroying the field to win by more than three seconds.

The strong US quartet, including individual 400m champion Sanya Richards-Ross and 200m winner Allyson Felix, won in 3min 16.87sec.

There were two Russian gold medals on the night, world champions Mariya Savinova and Anna Chicherova carrying on their Daegu form to win the women's 800m and high jump respectively.

Savinova, who was winning a fifth successive major title, held off fast-finishing South African Caster Semenya, at the centre of gender testing after her world victory in 2009, to win the two-lap race.

Chicherova meanwhile jumped a best of 2.05 metres, with American Brigetta Barrett winning silver with 2.03m on countback from Russian Svetlana Shkolina.

There was a shock in the other field event of the night, Trinidad and Tobago's Keshorn Walcott becoming the youngest ever winner of the men's Olympic javelin title at the age of just 19, and handing his country a first medal outside the sprint events.

Walcott threw a national record of 84.58 metres while Oleksandr Pyatnytsya of Ukraine took silver (84.51) and Finland's Antti Ruuskanen the bronze (84.12).

(Agencies)

Latest News from Sports News Desk