On a day when injuries ended seven players’ Wimbledon championship hopes, two qualifiers capped a wild Wednesday by taking out two of the biggest names in tennis at the All-England Club.

Roger Federer, the 17-time Grand Slam champion and perhaps the world’s greatest grass-court player, was stunned by qualifier Sergiy Stakhovsky in the second round — the seven-time Wimbledon champ’s earliest exit from a Grand Slam tournament in 10 years.

No. 3 seed Maria Sharapova, the 2004 champion, lost 6-3, 6-4 to 131st-ranked Michelle Larcher de Brito of Portugal in the second round.

The triumph of the day belonged to the 27-year-old Stakhovsky, ranked 116th in the world. The Ukrainian beat a top-10 player for the first time in his career — a victory that stands out as one of the sport’s biggest upsets. Federer was the defending champion and the loss ended his record streak of reaching at least the quarterfinals at 36 consecutive Grand Slam tourneys.

“Magic,” said Stakhovsky, who won 6-7 (5), 7-6 (5), 7-5, 7-6 (5). “I couldn’t play any better today.”

No. 2 Victoria Azerenka (knee) was among the seven injury withdrawals — believed to be a Grand Slam single-day record in the Open era. Steve Darcis (right shoulder), who upset Rafael Nadal in the first round, also withdrew.

Story on Page B3.