INDIAN WELLS, Calif. — Rafael Nadal ended the run of Latvian qualifier Ernests Gulbis with a 4-6, 6-4, 7-5 victory in the fourth round at the BNP Paribas Open on Wednesday night.
Nadal advanced to the quarterfinals against defending champion Roger Federer, who survived a three-set marathon of his own, beating 18th-seeded Stanislas Wawrinka 6-3, 6-7 (4), 7-5.
Maria Sharapova and top-ranked Novak Djokovic had yet to play their night matches after all four of the preceding matches on the main stadium court went three sets, extending the day session until 10 p.m. PDT.
Gulbis was on a 13-match winning streak, having made his way through the qualifying rounds at Delray Beach, Fla., where he won the title, and at Indian Wells, where he won three main-draw matches, including two over seeded players.
He was playing his 14th match in 19 days, and has yet to beat Nadal in five tries.
Gulbis held serve to lead 5-4 in the third. He led 30-15 on Nadal's serve, but lost the next five points to let Nadal tie the set.
Nadal earned the only break of the third to go up 6-5, then closed out the win on his third match point. He leapt in the air, tore off his headband and pumped his left arm, yelling, "Yeah!"
The fifth-seeded Spaniard opened his bid for a third Indian Wells title with a two-set victory over American Ryan Harrison, Nadal's first hard-court match in nearly a year.
He returned to the ATP Tour a month ago, winning two of three tournaments on clay after missing seven months because of a left knee injury. Nadal, shaken by an earthquake that rattled Indian Wells on Monday, had a walkover in his third-round match when Leonardo Mayer withdrew with a bad back.
Wawrinka's consecutive forehand errors in the gathering dusk of an unusually hot day in the California desert closed out his 10th consecutive loss to Federer on hard courts. The temperature reached 96 degrees — nearly 20 degrees above normal — during the day.
Maria Kirilenko got by No. 5 seed Petra Kvitova 4-6, 6-4, 6-3 in the searing heat to reach the women's semifinals for the first time.
Kirilenko improved to 6-0 in three-set matches this year. Seeded 13th, the Russian is playing her first tournament since mid-February when she retired with a right shoulder injury in the first round at Doha.
Of the eight women's quarterfinalists, none has spent more time on court than Kirilenko, whose total match time approached nearly eight hours before her latest match. All four of her matches at Indian Wells have gone three sets.
On the men's side, No. 3 Andy Murray beat Carlos Berlocq 7-6 (4), 6-4 to advance to a quarterfinal against No. 7 Juan Martin del Potro, who routed No. 19 Tommy Haas 6-1, 6-2.
Berlocq complained to the chair umpire that Murray was taking too long between points, prompting Murray to protest the volume of Berlocq's grunting.
"It was extremely, extremely loud, more than what I have experienced from any other player on the tour," Murray said. "If it's going to be suggested that I am using gamesmanship by taking too long, then you can't be making noises like that on the court. It's annoying."
Berlocq said he didn't realize the sound would bother Murray.
"Well, yeah, but that's what all of the real grunters say," the Scotsman retorted.