Old pals act: Roger Federer and Rafael Nadal first clashed in 2004
Old pals act: Roger Federer and Rafael Nadal first clashed in 2004 AFP

From racquet-smashing enfant terrible with a bad attitude and ill-advised ponytail to universally respected role model and modern icon, Roger Federer has attained almost saintly status.

More than 19 years after winning his first Grand Slam title at Wimbledon in 2003, which set him on the road to being acclaimed the greatest player of all time, Federer on Thursday announced his retirement.

At the age of 41 and trying to recover from a third knee surgery in 18 months, the great Swiss bowed to the inevitable march of time.

He leaves the sport with 20 Grand Slams, including a record eight Wimbledons, 103 titles and more than $130 million in prize money alone, all driven by a rare grace, laser precision and a signature one-handed backhand.

Self-confidence was never an issue - who else could have walked onto Wimbledon Centre Court sporting a bespoke cream blazer with an embroidered crest?

The artistry associated with the Swiss brought him a global legion of fans bedecked in 'RF' hats and almost mystic appreciation.

A columnist once famously even penned a gushing article headlined 'Federer as Religious Experience'.

Federer also held the world number one spot for 310 weeks, including 237 consecutive weeks between February 2004 and August 2008.

His net worth was estimated in 2019 at $450 million and such is the cash-register recognition of the Federer brand that in 2018, he penned a 10-year, $300 million deal with clothing manufacturer Uniqlo.

He was 36 at the time.

In his prime, Federer left opponents bamboozled.

"I threw the kitchen sink at him but he went to the bathroom and got his tub," sighed an exhausted Andy Roddick after losing the 2004 Wimbledon final.

Off court, however, he is Federer the family man, the father of two sets of twins, Myla Rose and Charlene Riva and Leo and Lenny with wife Mirka, a former player he met at the 2000 Olympics in Sydney.

His path to super-stardom wasn't always so settled.

As a talented young player, Federer's hair-trigger temper threatened to stunt his progress.

"I had a tough time getting my act together out on court, trying to behave properly. For me that was a big deal," he admitted.

At just 19, Federer famously defeated personal hero Pete Sampras at the 2001 Wimbledon tournament.

"A lot of friends had told me, 'I think you can beat him this year'," Federer said.

"I knew I had a chance. But it was not 100 per cent. I mean, he's the man on grass."

Twelver months later, however, Federer exited Wimbledon in the first round.

It took a personal tragedy for him to press the reset.

Just when he turned 21, his coach and close friend from his formative years Peter Carter was killed in a car crash in South Africa.

From that point on, the multi-lingual Federer committed himself to winning in style, no longer consumed by his inner demons.

Born on August 8, 1981 in Basel, to Swiss father Robert and South African mother Lynette, Federer started playing tennis at eight.

Turning pro in 1998, he won his first ATP title in Milan in 2001 and racked up trophies every year with the exception of 2016 and 2020 when he played only the Australian Open.

His first extended rest, to recover from a knee injury caused by running a bath for his two daughters, led to a 2017 renaissance with a refreshed Federer winning an 18th major at the Australian Open.

It had been after the first of his five Australian Opens in 2004 that he claimed the world number one ranking for the first time.

Federer has eight Wimbledons, six Australian Open, five US Opens and a single Roland Garros.

He won 28 Masters, a 2008 Olympic doubles gold medal with close friend Stan Wawrinka and a Davis Cup victory for Switzerland in 2014.

Had he not competed in the same era as Rafael Nadal and Novak Djokovic, his trophy collection could have been more impressive.

Nadal, who has forged a close relationship with Federer, enjoyed a 24-16 head-to-head advantage.

"I have always had the utmost respect for my friend Rafa as a person and as a champion," he wrote when the Spaniard won a 13th Roland Garros in 2020, equalling his record of 20 majors.

Against Djokovic, with whom dealings were never as cordial as with the equally revered Nadal, Federer trailed 27-23.

They shared history in 2019 when the Serb triumphed in the longest ever Wimbledon final of all time, just three minutes short of five hours.

Heartbreakingly for Federer, he squandered two championship points.

Since that day, Djokovic has also equalled and surpassed his 20-Slam record and beaten his record for weeks at number one.

Federer's stunning longevity saw him play 119 matches at Wimbledon (105 wins/14 losses), 117 in Melbourne (102/15), 103 at the US Open (89/14) and 90 at Roland Garros (73/17).

Despite those impressive numbers, Federer admitted he still battled serious nerves before a big tennis occasion.

"Sometimes it slows down your legs, your pulse starts racing... that can stress you out a tad," he said.

"I always say I'm happy I feel that way because it means I care. It's not like going through the motions. That would be a horrible feeling, to be honest."

On the eve of his shattering defeat to Djokovic in the 2019 Wimbledon final, Federer said he had not set any date for retiring.

"It's just discussions I always have with my wife about the family, about my kids, is everybody happy on tour, are we happy to pack up and go on tour for five, six, seven weeks. Are we willing to do that?" he said.

"For the time being, it seems like absolutely no problem, which is wonderful."

However, with a year lost to injury and the Covid-19 pandemic as well as a stalled comeback in 2021, Federer's "wonderful time" has finally ended.

Twenty of the best: Roger Federer with all of his 20 Grand Slam trophy moments
Twenty of the best: Roger Federer with all of his 20 Grand Slam trophy moments AFP
So close: Roger Federer returns the ball to Novak Djokovic in their epic 2019 Wimbledon final
So close: Roger Federer returns the ball to Novak Djokovic in their epic 2019 Wimbledon final AFP