Lewis Hamilton beaten to pole by team-mate Nico Rosberg

Nico Rosberg edged Mercedes team-mate Lewis Hamilton to take pole position at the Canadian Grand Prix.

The German was faster by just 0.079 seconds as the Mercedes team continued to compete on a level above the rest.

Red Bull's Sebastian Vettel took a surprise third ahead of the Williams of Valtteri Bottas and Felipe Massa.

Nico Rosberg and Lewis Hamilton

Formula 1: Murray Walker on the rivalry between Lewis Hamilton and Nico Rosberg

Red Bull's Daniel Ricciardo was sixth, with Ferrari's Fernando Alonso seventh from Toro Rosso's Jean-Eric Vergne and McLaren's Jenson Button.

Ferrari's Kimi Raikkonen rounded out the top 10, 0.4secs slower than his team-mate.

Rosberg's pole will be a blow to Hamilton, who went to Canada determined to avenge his controversial defeat in Monaco.

Hamilton had looked marginally the quicker through the weekend on a track where he had never before been beaten by a team-mate in qualifying.

But after Hamilton set the pace in the first two parts of qualifying, Rosberg beat him by 0.068secs on their first runs in the top 10 shoot-out.

When they went out for their second and final attempts, Hamilton was quicker in the first sector of the lap but dropped time in the middle part and could not make it up at the end.

"It's been a fantastic day," Rosberg said. "Really cool. And the best place to start the race."

Nico Rosberg's Canadian pole lap

Canadian Grand Prix: Watch Nico Rosberg's pole lap

Hamilton said: "It just wasn't the greatest qualifying session. Sometimes you have good ones and sometimes bad ones.

"Ultimately I know have good pace here - I just didn't do it."

The two were more than half a second clear of the rest of the field, but there was a very tight battle behind them.

Only 0.041secs separated Vettel in third from Ricciardo in sixth, and Vettel was less than 0.3secs quicker than Alonso in seventh place.

Williams had looked set to take the second row, but Vettel produced a spectacular lap to take third in the under-powered Red Bull-Renault.

Team principal Christian Horner described it as "his best qualifying lap of the season". It was only the second time Vettel has out-qualified new team-mate Ricciardo this season.

Vettel said: "A very good result. It was the maximum we could do. I didn't get on with the first two corners all weekend but after that I took a bit more risk and it worked out."

Williams head of vehicle performance Rob Smedley said: "I was expecting a bit more from both of them, I thought we had the legs to be third, but we didn't do it. But I'm happy to be where we are."

Nico Rosberg

Canadian GP: Nico Rosberg relishing battle with Lewis Hamilton

Ferrari appeared to have made a step forward through the practice sessions thanks to engine and aerodynamic improvements, but the car was unable to compete with the top six in qualifying.

Behind Raikkonen in 10th, Force India's Nico Hulkenberg was 11th, ahead of the second McLaren of Kevin Magnussen, Force India's Sergio Perez, Lotus's Romain Grosjean and Toro Rosso's Daniil Kvyat.

Sauber's Esteban Gutierrez did not take part in qualifying after a crash in final practice damaged his chassis. The Mexican will start the race from the back.

Caterham also have an evening of hard work ahead of them after Marcus Ericsson crashed at the end of first qualifying, tearing off his car's left rear corner.

Canadian Grand Prix qualifying results

Canadian Grand Prix coverage details