Federer is chasing a record eighth Wimbledon title and he was already well on top at the start of his 19th All England Club campaign when Alexandr Dolgopolov was forced to quit with an ankle injury.
The world number three raced into a 6-3, 3-0 in 43 minutes on Centre Court before the Ukrainian limped off.
Federer, who hit his 10,000th career ace in the eighth game of the first set, will face either Dusan Lajovic of Serbia or Greek qualifier Stefanos Tsitsipas for a place in the last 32.
Having unexpectedly won the Australian Open in January before taking the clay-court season off to rest, Federer, making a record-equalling 70th Grand Slam appearance, is the favourite to take the Wimbledon crown for the first time since 2012.
"Everybody's got a chance to win Wimbledon and for me it's no different. I already achieved my dream to be back here healthy. Now we'll see how far I can go," Federer said.
Djokovic, a three-time Wimbledon champion, was leading 6 -3, 2-0 when Slovakian world number 47 Martin Klizan retired after just 40 minutes on Centre Court due to a calf problem.
It was the kind of trouble-free first round Djokovic would have been hoping for after the most turbulent period of his career, the 12-time major winner losing in the Australian Open second round and the French Open quarter-finals.
"He had issues walking on to court. I tried to focus on my game plan, I was serving well and when it mattered I made a break," said Djokovic, who is aiming to win a first Grand Slam title since last year's French Open.
With defending champion Serena Williams sidelined while she prepares to give birth to her first child, the race to win the women's title is the most wide open in a generation.
World number one Angelique Kerber, the 2016 Australian and US Open winner, is among the favourites after reaching last year's final, which she lost to Serena.
The German has failed to maintain that form this season and her poor run culminated in an embarrassing French Open first round loss to Ekaterina Makarova last month.
==================
But the top seed showed glimpses of her best form as she saw off American qualifier Irina Falconi 6-4, 6-4 in 87 minutes on Centre Court.
"I'm happy to be back, but this year is completely different for me. I'm just happy I'm through the first round," Kerber said.
Milos Raonic advanced to the second round with a 7-6 (7/5), 6-2, 7-6 (7/4) win against Jan-Lennard Struff.
Big-serving Raonic became the first Canadian man to make a Grand Slam final with his impressive Wimbledon run 12 months ago before losing the title match to Andy Murray.
Australia's Bernard Tomic said he had lost his "respect" for tennis following his lacklustre 6-4, 6-3, 6-4 loss to Mischa Zverev.
"I don't know why but I felt a little bit bored out there, to be completely honest," Tomic said.
French 22nd seed Richard Gasquet slumped to a 6-3, 6-4, 5-7, 6-2 loss against Spain's David Ferrer.
In the women's draw, Karolina Pliskova underlined why she is the bookmakers' favourite to win Wimbledon as the world number three crushed Evgeniya Rodina 6-1, 6-4.
Former French Open champion Garbine Muguruza, the 14th seed, defeated Russia's Ekaterina Alexandrova 6-2, 6-4.
Australian qualifier Arina Rodionova, ranked 166th, saved seven match points before defeating Russian 16th seed Anastasia Pavlyuchenkova 3-6, 7-6 (8/6), 9-7.
Disclaimer: No Business Standard Journalist was involved in creation of this content
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
