After 500 miles at Texas Motor Speedway, only one open spot remains in the Championship 4.

Kevin Harvick recorded his first career win at Texas Motor Speedway and locked up a place in the Championship 4 at Homestead-Miami. With less than 10 laps left in the race, he captalized on a small mistake by Martin Truex Jr. to pass Truex on the outside. Harvick cruised for the last eight laps to the win.

"It's been a long time coming, I'm just really happy for everyone at Stewart-Haas Racing," Harvick told NBC Sports on the race broadcast. "I know I had a really good car and I knew I had to do something different."

Truex also clinched a spot in the Championship 4 on points, joining Harvick and Kyle Busch. There is one more spot up for grabs, which will be determined Sunday, Nov. 12, in Phoenix, in the last race before the championship race.

Playoff drivers Denny Hamlin, Ryan Blaney, Brad Keselowski, Chase Elliott and Jimmie Johnson will need a good finish in Phoenix to get into the Championship 4. A win will mean automatic qualification. If no playoff driver wins next week, the playoff points leader will make it through.

Keselowski holds the points lead for the final spot in the final round. Hamlin is next in the standings after a second-place finish in Texas. Johnson spent most of Sunday down three laps and will likely need a win in Phoenix to make it to Homestead.

Harvick won Stage 1. Kyle Larson took Stage 2, but did not finish the race after slamming into the wall later.