Lewis Hamilton won the pole position for the season-ending Brazilian Grand Prix, while Formula One leader Sebastian Vettel will start fourth and title challenger Fernando Alonso only eighth.
Hamilton set a lap of 1 minute, 12.458 seconds with his McLaren at Interlagos, just .055 in front of teammate Jenson Button. Vettel's Red Bull teammate Mark Webber will start third after a lap of 1:12.581, with Vettel behind him with a run of 1:12.760.
Ferrari's Felipe Massa was fifth after clocking 1:12.987, while teammate Alonso only managed a lap of 1:13.253, hurting his chances of overtaking Vettel for the championship.
Vettel needs to finish fourth or better on Sunday to become F1's youngest three-time champion at age 25. Alonso, also seeking his third title, needs at least a podium finish to have any chance of overcoming the 13-point deficit he has to Vettel.
Hamilton, who won the 2008 championship at Interlagos, will be driving his last race with McLaren before joining Mercedes next season. He is coming off a victory at the United States GP last week, and another triumph in his farewell race with the British team would be extra special.
"I think we put ourselves in a really good position and we are just going to do the best that we can from here, working together as a team," Hamilton said.
McLaren has been strong all weekend and seems set to play a role at the title showdown between Vettel and Alonso. Hamilton led the practice times on Friday and Button did the same earlier on Saturday. Vettel was always close behind the McLarens while Alonso was well behind the pace.
Drivers had faced very warm temperatures during practice but the temperatures dropped significantly for qualifying. It started raining about half an hour before the timed session but it stopped by the time the cars hit the track. The top teams waited several minutes to get out to avoid the slippery conditions at the tricky 4.3km track in South America's biggest city.
Michael Schumacher, preparing for his final race before retiring and giving way to Hamilton, couldn't do much with his Mercedes and will start only 14th.
Mexican Sergio Perez, taking over Hamilton's seat at McLaren, will start 13th with his Sauber.
Lotus' Romain Grosjean was lucky to avoid a serious accident when he ran into the back of Pedro de la Rosa's HRT while trying to make a pass at the front straight. He got off the throttle just enough to avoid a hard collision, but he still made contact and damaged his front wing.
Vettel enters the deciding race in a comfortable position to win his third title. He has been dominant recently, finishing on the podium in the last six races and winning four of them.
A fourth-place finish will be enough on Sunday even if Alonso wins the race. And if the Ferrari driver is second, Vettel can clinch the title by crossing the line seventh or better. The German driver holds the tiebreaker because he has more wins than Alonso - five to three.
Vettel has a chance to become the first driver to win three titles in a row since Schumacher won five straight from 2000-04. The only other driver to win at least three consecutive titles was Juan Manuel Fangio from 1954-57.
Alonso hasn't won a race since the German GP in July, but he finished on the podium in six of the final seven races, including the last four.
It will be the sixth time since 2005 that the F1 season will be decided at the Brazilian GP. Alonso won both of his titles at Interlagos in 2005 and '06.
Red Bull has won the last three races at the track, with Vettel second to teammate Webber last year.
Schumacher, F1's most successful driver, retired for the first time in 2006 after winning seven world titles. He returned in 2010 with Mercedes, but struggled and managed only one podium finish, at the European GP in July.