Max Verstappen has taken an emotional victory, one day after Red Bull's founder died, aged 78.
Verstappen overcame a horror pit stop that threatened to rob his chance of victory, to secure a record-equalling 13th win of the season.
Mercedes driver Lewis Hamilton came second, while Ferrari's Charles Leclerc climbed from 12th on the grid to place third.
Red Bull secured the constructors' championship for the first time since 2013.
Verstappen's chance at victory looked gone at the end of lap 35 when he pitted from the lead.
He was stationary in the pits for 11 seconds as the pit crew struggled to put on Verstappen's left-front tyre.
The delay allowed both Hamilton and Ferrari's Charles Leclerc to pass him.
Hamilton held a lead of more than six seconds but was reeled in by the determined Dutchman, who equalled Michael Schumacher and Sebastian Vettel's record of 13 wins in a single season.
The victory also secured Red Bull their first constructors' world championship since 2013, one day after Red Bull's co-founder and team owner Dietrich Mateschitz died.
"It's a very difficult weekend for us. This one is dedicated to Dietrich," Verstappen said.
"The only thing we could do today is win, and even though — after the pit stop — it was not looking great, I gave it everything out there and pushed to the limit to come back."
Lewis Hamilton drove the best race of his season, leading the race with six laps remaining after Red Bull's pit stop error.
His second-place finish is Hamilton's best result this season and draws him within three points of Carlos Sainz for fifth in the drivers' championship.
Ferrari's Carlos Sainz lasted just one lap after starting from pole position.
The Spaniard was hit from behind by the Mercedes of George Russell, causing him to spin and ultimately retire after the first lap.
It is the sixth time this season that Sainz has failed to finish a race.
Ricciardo struggles as Norris helps claw points on Alpine
Daniel Ricciardo was unable to make any impact in Texas, finishing 16th a day after a poor qualifying session.
Teammate Lando Norris had a much better day, finishing sixth and securing vital points for McLaren in their fight for fourth in the constructors' championship with Alpine.
The sixth-place finish helped McLaren to reduce their deficit to Alpine to 11 points, but it could have been more without a splendid driver from Fernando Alonso.
Alonso, who leaves Alpine at the end of the season, looked out of the race when his car nearly flipped in a crash midway through the race.
The Spaniard was able to keep the car running and with damage, powered his way to seventh.
The Spaniard was given a 30-second penalty hours after the race finished because "his car was sent back on track in an unsafe condition".
This dropped him to 15th, but that penalty was overturned four days later, reinstating him to seventh.