Indian Wells: World number three Roger Federer defeated Thomaz Bellucci of Brazil 3-6, 6-3, 6-4 in the fourth round of the ATP/WTA Indian Wells tournament on Wednesday.

Federer advanced to the quarterfinals where he will play either Denis Istomin or Juan Martin del Potro.

World number three Federer scrambled for the second-straight day to eliminate an up-and-comer he was facing for the first time, coming from behind to beat Bellucci.

Federer is chasing his fourth Indian Wells title after winning three straight times from 2004-2006.

The 30-year-old Swiss, who already has two titles in 2012, was making a quick turnaround after rallying to win the night match Tuesday against Canadian Milos Raonic in three sets.

Federer also had to scramble to get back into it Wednesday after dropping the first set. He then finished the second set the way he started it, by breaking the Brazilian's serve en route to a 6-3 win.

"It is always great to come through in a three setter," Federer said. "I struggled early on to make the transition from night to day. I am happy and relieved to be through and still alive in the tournament."

Bellucci, who is Brazil's No. 1, eased into the fourth round with a victories over sick opponents. He beat Jurgen Melzer in straight sets before the Austrian pulled out of doubles with a virus and then followed it up with a walkover over Nikolay Davydenko, who withdrew with an illness.