INDIAN WELLS, Calif. -- Serena Williams' return to tennis after a five-week break ended early with her retiring from the BNP Paribas Open because of a viral illness Sunday.
Williams raced to a 3-0 lead over two-time major champion Garbine Muguruza in their third-round match before dropping six consecutive games and the first set 6-3.
"By the score, it might have looked like I started well, but I was not feeling at all well physically," Williams said in a statement distributed by tournament officials.
During the changeover between sets, Williams called for a trainer. She went back out and lost the first game of the second set. The match was soon declared over, and Williams walked off the court.
"Before the match, I did not feel great and then it just got worse with every second; extreme dizziness and extreme fatigue," Williams said. "I will focus on getting better and start preparing for Miami."
Muguruza is the only player to have beaten both Serena and Venus Williams in tournament finals.
"It's really a weird feeling because I don't feel like I won the match point and well done, good match," Muguruza said. "It was just like, 'Man, we'll play next time.'"
The Spaniard credited Williams for being "very dominating" from the start of the match.
"I had to adapt a little bit my position in the court, the way I was hitting, and it took me a few games to kind of do it," Muguruza said. "Once I did it, I felt much more comfortable."
Williams, 37, was playing her first tournament since the Australian Open in late January, when she lost in the quarterfinals.
After a first-round bye in Indian Wells, she beat Victoria Azarenka 7-5, 6-3 on Friday night.
It's the second time in four years that Williams has withdrawn from the tournament. She returned to the desert in 2015 after a 15-year boycott. That year she reached the semifinals before withdrawing against Simona Halep. She missed 2017 because of pregnancy.
Federer saved six of seven break chances against the German after losing just two points on his serve in the first set.
"If I maybe would have served a little bit better, I think things would have gone faster," Federer said. "But at the end it was a tough second set, and it's maybe also exactly what I needed."
Federer has reached the final of the desert tournament in his past four appearances, winning two years ago. In all, he owns five titles at Indian Wells. He won his 100th career title in Dubai, United Arab Emirates, last weekend.
Halep, the No. 2 seed, needed nearly two hours to beat qualifier Kateryna Kozlova 7-6 (3), 7-5 in the third round. Kozlova led 6-5 and was within two points of winning the first set before Halep forced a tiebreaker in their first meeting.
Halep dominated the tiebreaker, urged on by a large contingent of Romanian fans at Indian Wells Tennis Garden.
"If someone would have told me I would have gone to the third round of this tournament at the beginning of the year, I would have said, 'You're crazy,'" Andreescu said. "This is one of the best tournaments in the world, so I'm just really, really happy."