Joseph Schooling, who famously beat his idol Michael Phelps in Rio to become Singapore's first and only Olympic champion, said Tuesday he was retiring from competitive swimming.

Schooling made the announcement on social media eight years after stunning the world by beating American great Phelps to win 100m butterfly gold.

Schooling failed to qualify for the same event at Tokyo 2020 and his career started to ebb after winning gold medals in the 50m and 100m butterfly at the 2018 Asian Games in Jakarta.