Sir Mo Farah has taken to the track one last time for the Diamond League in Zurich.

Having had to settle for silver in his last outing at the World Championships, the 34-year-old was hoping to go one better and win his final race before switching to the road.

And the four-time Olympic champion did just that, edging to victory in the 5,000 metres with a time of 13 minutes 06.05 seconds.

If his swansong in London wasn't dramatic enough, it was fitting that he once again found himself up against Ethiopia's new champion Muktar Edris.

This was a classic Farah performance; the Team GB legend held back for a long time before suddenly surging forward for the last lap.

As Edris ran for the finish line, he fell into a dive and was pipped to second by Paul Chelimo of the USA. There was only going to be one winner.

Check out the dramatic ending below:

What a way to finish such a glittering career. Of course, it won't make up for Farah's disappointment at the Olympic Stadium earlier this month, but he can now take to road racing safe in the knowledge he went out on a high.

Farah thanks his fans 

"I wanted to win, and it is amazing that I have won, but it was hard work," he said, per the BBC.

"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."

From the sheer amount of tributes that have been paid to him from the world of sport, it's easy to forget we will be seeing him again soon. Farah's next competition will be the Great North Run on September 10.

As for Justin Gatlin, the controversial sprinter finished fourth in the evening's 100m, with Britain's CJ Ujah landing a surprise triumph.

Where does Farah rank among the greatest athletes of all time? Have your say in the comments.