Jenson Button clinched his first pole position for three years as Brackley-based Brawn GP secured the front row for Sunday's Australian Grand Prix on a day of disaster for reigning world champion Lewis Hamilton.

Four months ago Honda Racing opted to pull out of Formula One, and it appeared as if Button and team-mate Rubens Barrichello were staring at a bleak future.

But a management buy-out, led by their technical genius in Ross Brawn, spared the team from disappearing out of the sport altogether and - in one of the most remarkable turnarounds in sporting history - the Brawn GP duo will start from the front row.

Both Brawn cars are carrying Virgin branding after Sir Richard Branson's Virgin Group became a sponsor.

Branson, who was last month linked with buying the team, announced a "substantial sponsorship deal" at the Australian Grand Prix today.

"Virgin are trying to build the most respected brand in the world and an involvement with a great team will help that," Branson added.

Brawn GP chief executive Nick Fry said: "Virgin is paying to sponsor the car and it might evolve into more."

Fry's remark will be interpreted as a suggestion that Virgin may be considering taking a shareholding in the team in the future.

The Williams team at Grove had a good start to the season, with Nico Rosberg, who had dominated the practice sessions, qualifying fifth on the grid. His team-mate Kazuki Nakajima will start 11th.

Enstone Renault F1 team driver Fernando Alonso will start from 10th and team-mate Nelson Piquet 15th.

As for Hamilton, after just scraping out of the opening 20-minute run by a mere 0.049 seconds, a drivetrain failure prevented him from taking to Melbourne's Albert Park track, on which he won last year, for Q2.

The 24-year-old will start from 18th after he initially qualified 15th but was given a five-place grid penalty for changing his gearbox, and moved to the back.

However, Toyota's Timo Glock and Jarno Trulli, who had qualified sixth and eighth, were then sent to the back of the grid after their upper rear wings were found to contravene regulations, moving Hamilton up two spots.

Button hailed an "amazing" turnaround following a largely bleak winter for the Brackley-based team.

"The last five or six months for both of us have been so tough. Going from not having a drive or any future in racing to putting on pole here is just amazing, it really is," he said.

"I've got to give all credit to the team for making this happen. This is where we deserve to be after the tough times we've had."

Button, 29, beat Barrichello by a comfortable three tenths of a second after little had separated them previously. It gives him the fourth pole of his career, and puts him on course for only his second victory in what would be 154 grands prix.

Sebastian Vettel starts a fine third on his debut for Red Bull, with Robert Kubica also performing superbly for BMW Sauber - the Pole joining the young German on the second row.