MONACO (AP) " Stanislas Wawrinka gave his good friend Roger Federer a little more time to celebrate his wedding.
Not that Federer was hoping for an early exit at the Monte Carlo Masters.
Wawrinka beat his Olympic doubles partner 6-4, 7-5 Thursday in the third round, in Federer's first tournament since getting married to longtime girlfriend Mirka Vavrinec on Saturday.
Federer struggled throughout most of the match, facing 14 break points after getting just 10 days of practice on clay surfaces.
"Like I told him, the loss doesn't hurt as much just because I know it's against a good guy," said Federer, who has lost the last three Monte Carlo finals to Rafael Nadal.
Wawrinka set up his first match point with a deep shot into the corner that the second-seeded Federer failed to return. He clinched the victory with a backhand pass down the line.
"Maybe not the most spectacular tennis, but it's my most beautiful victory," Wawrinka said.
Top-ranked Nadal took on Nicolas Lapentti in a later match, but rain forced the players off center court after the first game, with Lapentti holding serve against the four-time defending champion to lead 1-0.
Federer, who needs one more Grand Slam title to equal Pete Sampras' record of 14 majors, was unhappy with his forehand and serve.
"Today definitely my serve wasn't working. I haven't served my best throughout the season, so I have to make sure I get my serve back in," Federer said. "I just don't hit the spots when I really want to."
The 13th-seeded Wawrinka, who won doubles gold in Beijing with Federer and plays alongside him on Switzerland's Davis Cup team, will meet qualifier Andreas Beck of Germany next.
"I am a bit embarrassed to celebrate it," Wawrinka said. "I believe (Federer) hadn't found his rhythm on clay and he made many errors."
Federer looked shaky from the start, saving a break point in his opening service game, before Wawrinka got the decisive break in the seventh game. Federer then sent an easy forehand into the net to give Wawrinka the first set.
The two players traded breaks to open the second set and Federer, who accepted a wild card to play in the tournament after originally planning to skip it, had to save two more break points at 15-40 in the seventh game as Wawrinka pressured his unusually weak forehand.
Wawrinka then needed another four chances before breaking Federer again in the 11th game to serve for the match at 6-5. Although Wawrinka wobbled, Federer wasted two break points and failed to force a tiebreaker.
"Not that I expect 10 aces a set here on this type of heavy clay, but I just think it's something I need to work on," Federer said. "Make sure my timing gets right, my footwork gets right, and my forehand. It just showed me again this week what I need to work on for next week. That's why I think it was good to come here."
In other matches, third-seeded Novak Djokovic advanced to face No. 7 Fernando Verdasco of Spain by beating Albert Montanes of Spain 6-1, 7-6 (4), 6-0. Verdasco beat No. 10 David Ferrer 6-2, 6-1 in an all-Spanish match.
Beck rallied to beat Juan Monaco of Argentina 3-6, 6-2, 7-5.
A heavy rainstorm interrupted fourth-seeded Andy Murray's match against Italian qualifier Fabio Fognini. Murray rallied from 5-0 down to win the first set 7-6 (11), and he led 1-0, 40-40, with Fognini serving.