MONTREAL (AP) -- Rafael Nadal is out at the Rogers Cup after a shocking 1-6, 7-6 (5), 7-6 (5) defeat in the second round against Croatia's Ivan Dodig on Wednesday night.
With the tiebreaker in the final set tied 5-5, Dodig - ranked 41st in the world - ripped a 135 miles-per-hour ace past Nadal, then finished the upset by hammering a backhand that the second-ranked Spanish star couldn't handle.
"This is the greatest moment of my life,'' Dodig said.
In a late match following the Nadal loss, American Mardy Fish downed Feliciano Lopez of Spain 6-2, 6-3. Earlier, No. 5 Gael Monfils of France defeated American Alex Bogomolov, 6-2, 7-6 (5).
After an opening set that lasted only 33 minutes, a different Dodig stepped onto Centre Court at Uniprix Stadium for the second set. He provided a great show to the fans, who had to wait close to two hours to see the start of the match because of a rain delay.
Both players displayed a variety of shots, transforming what looked like an easy affair for Nadal after the opening set into a thrilling match.
Nadal started out with authority and seemed to have an answer for all of Dodig's shots. But Dodig turned the match around largely with his serve. The Croatian finished with 19 aces.
In the third set, Nadal broke Dodig's serve in the eighth game to take a 5-3 lead and had a chance to serve for the match. But Dodig refused to quit and broke back immediately.
In the tiebreaker, Dodig gave himself a match point with his 19th ace and put the finishing touch with a spectacular crosscourt backhand, right on the line.
"He played very well, very aggressive,'' Nadal said. "He didn't feel the pressure in the important moments. And at the end of the match, probably I was a little bit unlucky today, no?''
Dodig will face Serbia's Janko Tipsarevic in the next round. Tipsarevic beat Spain's Fernando Verdasco 6-4, 6-7 (5), 6-3.
Earlier, Roger Federer defeated Vasek Pospisil of Canada 7-5, 6-3 Wednesday in the men's draw of the Rogers Cup.
Pospisil, the second-highest-ranked Canadian behind Milos Raonic, earned eight aces against the world's former No. 1, who was playing his first match since turning 30 on Monday.
The No. 3-ranked Swiss won the Rogers Cup in 2004 and 2006 and was the runner-up in 2007 and 2010.
It was a dream matchup for the 21-year-old Pospisil, who has idolized Federer since childhood. Afterwards, Federer said it's not the first time he's heard of a younger opponent's admiration.
"For me it was important to have role models to look up to, such as (Pete) Sampras and (Stefan) Edberg and so forth,'' Federer said.
"Then to be able to also play Pete at Wimbledon was very big in my career, it gave me a huge lift to be able to play in a big stadium against a big player - and I hope it does the same for him.''
Top-seeded Novak Djokovic survived an early scare before defeating Russia's Nikolay Davydenko 7-5, 6-1. The 2007 Rogers Cup champion improved his stunning 2011 record to 49-1 overall and 25-0 on hard courts. The Serb's only defeat came at the hands of Federer in the French Open semifinal.
In his first match since climbing to No. 1 in the ATP rankings, the 24-year-old Djokovic battled through a close first set before finishing of the 30th-ranked Davydenko.
Federer said he was impressed with Pospisil's performance.
"He had good variation on his serve,'' said Federer, who also remarked how surprised he was by the 6-foot-3 Pospisil's height. "It was somewhat tricky getting to know his patterns a bit more.''
Pospisil said it felt like a dream when he walked out onto the stadium's biggest stage - where the crowd roared around him and his idol stood at the other end of the court.
"After that I concentrated on my game and I tried to forget that I was playing against Federer,'' Pospisil said.
When told Federer was impressed by his level of play, Pospisil blushed, let out a nervous giggle and stumbled on his words a little bit.
"To hear that from Roger, for me it's incredible,'' the starstruck Pospisil said. "He's been my favorite player for eight years, so it's someone I watched on television every week, so yeah, it's nice to hear that.''
Second-ranked Rafael Nadal was scheduled to play later in the day.
In other early singles action, No. 7 Tomas Berdych of Czech Republic ousted Alexandr Dolgopolov of Ukraine 4-6, 6-2, 6-3; No. 8 Nicolas Almagro of Spain defeated Ukraine's Sergiy Stakhovsky 6-2, 7-6 (5); No. 13 Jo-Wilfried Tsonga of France blasted 15 aces to beat Bernard Tomic of Australia, 6-3, 7-6; No. 14 Stanislas Wawrinka of Switzerland knocked out qualifier Michael Russell of the United States, 6-3, 6-2; and Ivo Karlovic of Croatia beat Germany's Philipp Petzschner 6-7 (0), 7-6 (2), 7-6 (8).
Raonic is not taking part in the tournament as he recovers from a hip surgery.