Indian Wells, California Roger Federer outlasted hard-serving Milos Raonic 6-7 (4), 6-2, 6-4 under the lights in the fourth round of the BNP Paribas Open late on Tuesday night, extending his run of winning 35 of 37 matches since last year's US Open.

Rafael Nadal didn't have as much trouble in sunny conditions, beating countryman Marcel Granollers 6-1, 6-4.

It was similarly easy on the women's side for top-ranked Victoria Azarenka and No. 2-seeded Maria Sharapova, who won their matches in just more than an hour to reach the quarter-finals.

Ana Ivanovic defeated Caroline Wozniacki 6-3, 6-2 in a match-up of former Indian Wells champions and former top-ranked players. Ivanovic served out the match with a 40-love game to complete her biggest win over a top player in months.

"I was really looking for opportunities, trying to come in whenever I had chance, trying to step in from both sides, trying to stay calm in my serve and execute the way I was executing in practice. I really managed to do that well," Ivanovic said.

On a roll

Wozniacki's loss ensured she will drop out of the No. 4 spot in next week's rankings, while keeping the tournament without a back-to-back women's winner since Martina Navratilova in 1990-91.

"She just went on a roll. She started to hit the ball harder and it was going in," Wozniacki said. "I stepped back a little bit, and it gave her the time to do what she wanted."

Raonic came into his first match against Federer having won 16 of his previous 18 matches this year, but he fell to 0-7 against top-eight players with the loss.

"I thought before the match I had a chance to win this," he said. "I did a few things well in the first set, and after that he just picked it up on the return. I don't think I served as well after, either."

Federer broke to open the second set and broke again in the seventh game to even the match. In the third, he broke Raonic to go up 4-3. Raonic held at love to get to 5-4 before Federer won four straight points to close out his 73rd consecutive win against a player outside the top-20.

Nadal, ranked second in the world, has won his past 10 matches against fellow Spaniards, and 22 of his past 23 sets against them. Granollers, who has risen from 50th to 26th in the rankings over the past year, cracked a 132-mph serve during the match, but he couldn't overcome Nadal's quickness and touch.

Results

Men (third round, x denotes seeding):

Juan Martin del Potro (ARG x9) bt Fernando Verdasco (ESP x19) 6-2, 7-6 (8/6); Thomaz Bellucci (BRA) bt Nikolay Davydenko (RUS) walkover; Denis Istomin (UZB) bt David Ferrer (ESP x5) 6-4, 6-3; Jo-Wilfried Tsonga (FRA x6) bt Radek Stepanek (CZE x28) 6-7 (2/7), 6-3, 6-2; Rafael Nadal (ESP x2) bt Marcel Granollers (ESP x26) 6-1, 6-4; David Nalbandian (ARG) bt Janko Tipsarevic (SRB x10) 6-3, 3-6, 6-3; Roger Federer (SUI x3) bt Milos Raonic (CAN x27) 6-7 (4/7), 6-2, 6-4; Alexandr Dolgopolov (UKR x21) bt Marcos Baghdatis (CYP) 6-4, 5-7, 6-4.

Women (fourth round): Agnieszka Radwanska (POL x5) bt Jamie Hampton (USA) 6-3, 4-6, 3-0 retired; Victoria Azarenka (BLR x1) bt Julia Goerges (GER x14) 6-3, 6-1; Maria Sharapova (RUS x2) bt Roberta Vinci (ITA x21) 6-2, 6-1; Angelique Kerber (GER x18) bt Christina McHale (USA x32) 6-3, 3-6, 7-6 (7/4); Li Na (CHN x8) bt Klara Zakopalova (CZE) 6-1, 6-0; Maria Kirilenko (RUS x20) bt Nadia Petrova (RUS x30) 6-1, 5-7, 6-2; Ana Ivanovic (SRB x15) bt Caroline Wozniacki (DEN x4) 6-3, 6-2; Marion Bartoli (FRA x7) bt Lucie Safarova (CZE x23) 6-1, 6-4.