Published on 12:00 AM, August 11, 2016

KING PHELPS RIDING INTO SUNSET

To put into context how amazing Michael Phelps' achievement of capturing 21 gold medals is, think about this: If Phelps was a country, he would now be ranked 39th, equal with Ethiopa, in the all-time Olympics gold medal table, ahead of 167 other countries. PHOTO: REUTERS

True to his word, Michael Phelps is soaking it all up in his Olympic swansong, enjoying some of the sweetest moments of his illustrious career as he turns his farewell into one long lap of honour.

He won his 20th and 21st gold medals in quick succession on Tuesday, avenging one of the rare defeats of his staggering career in winning the men's 200m butterfly at Rio, then anchoring the United States to victory in the 4x200m freestyle relay.

The crowd at the Olympic Aquatics Centre revelled in one of the last few chances to see Phelps swim, and the American egged them on, straddling the lane ropes with his arms raised in the air then planting a big made-for-TV sloppy kiss on his baby son, Boomer.

"I honestly I don't know at this very moment where that stands," Phelps said when asked how it compared to some of his other great nights in the pool.

"It's kind of been a crazy last couple days. I know that was probably one of my most challenging doubles.

"That being my very first olympic event, to be able to win it at my fifth olympics is pretty special."

For Phelps, winning the 200 fly was one of the sweetest moments of his life. A lung-bursting event that most swimmers hate, it has always been his favorite race, but one in which he still thought he had a point to prove.

Phelps qualified for his first Olympics as a 15-year-old at Sydney in 2000 in the 200 fly. He set his first world record in the same event a year later.

He won the gold medal at Athens in 2004 and again in Beijing in 2008 but suffered a shock defeat to South Africa's Chad le Clos at London in 2012 when he misjudged his final lunge to the wall.

Phelps retired after London with 18 gold medals in his collection - twice as many as any other athlete in any sport - but his loss in the 200 fly kept eating away him and he announced a comeback for Rio, telling his life-long coach Bob Bowman the 200 fly was his priority.