WIMBLEDON, England (AP) — Second-ranked Rafael Nadal has advanced to the third round at Wimbledon with a 5-7, 6-2, 7-6 (2), 6-3 win over Ernests Gulbis.

Nadal, who has lost the last two Wimbledon finals to Roger Federer, was broken in the 12th game of the first set Thursday but rallied to dominate the second and fend off the big-serving Latvian in the third-set tiebreaker.

He broke in the eighth game of the last set and then held, closing with a forehand winner down the line.

Four-time French Open champion Nadal is bidding to become only the third man in the Open era after Rod Laver and Bjorn Borg to win both the French and Wimbledon titles in the same year.