In the final restart on lap 310 of 312, Hamlin led the way after changing only two new tires, but had a good resumption when Kyle busch tried feverishly to contain an attack of Ryan Blaney.
Busch finally took second place and Hamlin ended up winning by 0s377 in the checkered flag.
The victory – the 37th of Hamlin's race – assures him that he will be one of the four drivers who will compete for the 2019 series championship next weekend in Homestead, Florida, along with Kyle Busch, Kevin Harvick Y Martin Truex Jr.
Hamlin started fifth in the playoff positions, 20 points behind Joey Logano, and in danger of losing the chance to fight for the title.
"I can't believe it," Hamlin said. "This team has worked very hard all year. They deserve to be there. I put them in a bad place last week. Today I told them at the meeting: 'I will give everything I have to make up for the mistake I made last week. ', and that's all I have.
"I've been through so many playoffs, so many things that go wrong. This year I'm waiting for the right thing to happen. I can't thank this team enough. I still don't have any words. I'm going to have to do a little more donuts. I still haven't finished, you have to go to Homestead. "
Hamlin said his Toyota No. 11 this Sunday was one of the "best cars of my career."
"I pressed for all I could. I mean, that's all I have. Once we got the big advantage, a little over 10 seconds, I stayed there. I started to think that if the yellow flag comes out, I want do all the laps you can. "
"It's all we had. There's still work to be done. It doesn't guarantee a championship. It gives us a chance. You live to fight another day. It's all you can ask for."
Busch finished second, Blaney third, Kyle Larson fourth and Harvick fifth.
Completing the top 10 classified were Truex, Erik Jones, Clint Bowyer, Logano and Brad Keselowski.
For its part, the Mexican Daniel Suarez He finished the race in 15th position, being the last car in the leader's lap at the time of the checkered flag.
NASCAR Cup Series – Phoenix, United States – Carrera