Tony Stewart knocked Brad Keselowski from the pole as qualifying ended Saturday at Texas Motor Speedway.
Stewart waited right until the end of the final round to attempt his lap and circled the speedway at 195.454 mph to grab the top starting spot for Sunday's race.
It's Stewart's 15th career pole and first since Atlanta in 2012.
Keselowski made his attempt earlier in the session and turned his lap at 195.419. He was out of his car and watching the scoring pylon as Stewart crossed the finish line, and Keselowski dropped his head in disappointment when he saw he'd been beaten.
Kevin Harvick qualified third as two Stewart-Haas Racing Chevrolets were in the top three.
Greg Biffle and Carl Edwards qualified fourth and fifth for Roush Fenway Racing.