NEW YORK — Roger Federer lost in the fourth round of the US Open for the first time in a decade, surprisingly beaten, 7-6 (3), 6-3, 6-4, by 19th-seeded Tommy Robredo of Spain Monday night.
The loss caps a rough Grand Slam season for Federer, who owns a record 17 major championships, including five at Flushing Meadows.
He exited in the semifinals at the Australian Open in January, the quarterfinals at the French Open in early June, and the second round of Wimbledon — against a player ranked 116th, to boot — in late June.
That ended Federer’s record run of reaching at least the quarterfinals at 36 consecutive Grand Slam tournaments.
Now, thanks to Robredo, Federer has a new, unwanted streak: Two consecutive losses before the quarterfinals at majors.
In other action Monday, Roberta Vinci reached the US Open quarterfinals for the second straight year, beating fellow Italian Camila Giorgi and the rain.
The 10th-seeded Vinci won, 6-4, 6-2, in 67 minutes. Moments later, it started pouring, stopping all matches at Flushing Meadows.
Vinci had never made a Grand Slam quarterfinal before this tournament a year ago, when she was 29. Now Vinci has done it in consecutive US Open trips. She lost to another countrywoman, doubles partner Sara Errani, in the quarters in 2012.
‘‘It’s obvious that I’m not young. I’m 30,” said Vinci. “But it can be a strength, because I have a lot of experience. Against a player like Camila, who is very young, it can be an advantage for me — and I think it was on the court today.’’
Giorgi, a 136th-ranked qualifier, was trying to reach her first major quarterfinal at age 21. In her third-round upset of sixth-seeded Caroline Wozniacki, she crushed the ball on point after point, with 46 winners and 45 unforced errors.
She jumped to a 4-1 lead in the first set Monday, but Vinci stayed poised and patient. Vinci, who had never faced the younger Italian before, started attacking her forehand, and Giorgi’s mistakes mounted. She finished with 35 unforced errors to 20 winners.
‘‘The problem wasn’t the opponent,’’ Giorgi said. ‘‘The problem is that I wasn’t myself on court today.’’
Vinci is one of only two players seeded in the top 10 left in her half of the draw, along with No. 2 Victoria Azarenka.
About two hours after play was halted, the courts had been dried but the players weren’t warming up. Sure enough, rain started to fall again.