Sir Mo Farah said goodbye to his track career in dramatic fashion as he claimed gold in the 5,000m at the IAAF Diamond League in Zurich.
The four-time Olympic champion was clinging on with his fingernails down the final straight as Muktar Edris flung himself towards the line.
In the end it was a perfect send off for Farah as he won the enthralling race by four hundredths of a second to finish in a time of 13.06.05.
The 34-year-old took gold in the 10,000m at the World Championships in London this month before losing his 5,000m crown but was able to win his final British track race in Birmingham.
And following the dramatic race in Switzerland, Farah admitted he had been forced to dig deep getting over the line to claim victory.
"I wanted to win, and it is amazing that I have won, but it was hard work," said Farah. "I will miss the track, the people, my fans.
"I have enjoyed running in stadiums for a lot of years, but now first of all I will enjoy being with my family."
It was a fine evening in Zurich for Great Britain as Chijindu Ujah clinched the final Diamond League 100m with a time of 9.97seconds.
Ujah fended off World Champion Justin Gatlin with the superb time to cap off the biggest win of his career.
It was a season’s best for Ujah, who was part of Great Britain’s gold medal 4x100m relay team at the London World Championships, and the 23-year-old was delighted with his season ending display.
He said: “It feels amazing to round off my Diamond League series. I’m pretty happy with the series I put together and I cannot complain, a seasons best and now my season is done.
“I don’t know why it has come together now but I was telling my coach that I got to the World Championships a bit tired but then I got to the relay and you saw that’s when I really got back up and since then it has been going up and up.
“It’s a shame it has come now but with experience I should be getting it right at the major championships in the next couple of years.”
Elsewhere it was a brilliant run from the 4x100m women’s relay team who took home the silver medal after pipped on the line by Jamaica.
Asha Philip, Desiree Henry, Dina Asher-Smith and Daryll Neita produced a better time than their silver winning time at the London World Championships, finishing in a time of 41.86 seconds.
Robbie Grabarz just missed out on a top three finish as he came fourth in the high jump event with a best of 2.24m.
And team captain in London Eilidh Doyle also just missed out on a top three spot, coming fifth in the 400m hurdles after posting a time of 55.09seconds.