Roger Federer will play alongside Martina Hingis for Switzerland in the mixed doubles competition of the 2016 Rio Olympics.

Federer, who announced the development on his official Twitter account, said that he is very excited to team up with Hingis because he has not played with his fellow Swiss tennis icon for a long time.

"I'm very excited about [playing with Hingis] because I haven't played with her I guess in 15 years," Federer told reporters via ESPN. "I looked up to her when I was younger. I thought she was the most unbelievable talent."

The 17-time Grand Slam champion is eyeing his third Olympic medal after winning the gold in doubles with Stan Wawrinka in 2008 and silver in singles in London in 2012.

"Every Olympic Games has been super amazing experience, an eye-opener, a great learning curve for me, seeing other athletes, getting inspired and motivated, carrying the flag is such a proud moment in my career and my life," Federer said of competing in the quadrennial event.

Federer has competed in all four Olympics since making his debut in 2000 in Sydney. He is always considered favorite to win in the singles competition, but he has yet to deliver the singles gold for Switzerland.

The Olympic singles gold medal is the only missing accolade on his list of achievements. He came close to winning the gold in 2012, but local bet Andy Murray denied his bid, as the Briton ran away with a straight-set win in the final match.

While Federer's decision to play mixed doubles with Hingis made a lot of tennis fans excited because they will see two tennis superstars team up, some analysts questioned the decision because it could hurt Federer's chances of winning his first Olympic gold medal in the singles event due to fatigue factor.

Federer's former coach, Paul Annacone, said that he will ask about the Swiss superstar's priority -- either enjoying his final Olympic stint by playing in all three events or winning the singles gold -- if he is still part of his coaching circle.

"If I were still his coach, I would have just asked him what his priorities were," Annacone told ESPN. "Are you in Rio for the experience, to enjoy it all and take any medal you can get and not think too long-term, about the singles gold or about the US Open? If so, then go ahead, play all three."