Maverick Vinales overcame a horror start from pole on his Aprilia to claw his way back and win the Grand Prix of the Americas MotoGP in Texas on Sunday.
Exciting teenaged rookie Pedro Acosta took second with Enea Bastianini completing the podium of the third race weekend of the season.
South Africa's Brad Binder finished ninth. Binder started from a lowly 17th position after a crash in qualifying on Saturday.
Vinales, who had dropped back to 11th after a disastrous run from pole to the first corner, wrote his name into motorcycling history as the first rider to win a MotoGP race with three different teams - Suzuki, Yamaha, and now Aprilia.
'Thank you guys, I was feeling everyone pushing me, here in America,' Vinales told the fans at the circuit in downtown Austin.
'History made, thank you America, I'm super happy. We need to keep working, the pace was amazing.'
Grand Prix of the Americas results on Sunday: 1. Maverick Vinales ESP/Aprilia 41:09.503, 2. Pedro Acosta ESP/GasGaS-Tech3 at 1.728, 3. Enea Bastianini ITA/Ducati 2.703, 4. Jorge Martin ESP/Ducati-Pramac 4.690, 5. Francesco Bagnaia ITA/Ducati 7.392, 6. Fabio Di Giannantonio ITA/Ducati-VR46 9.980, 7. Aleix Espargaro ESP/Aprilia 12.208, 8. Marco Bezzecchi ITA/Ducati-VR46 13.343, 9. Brad Binder RSA/KTM 14.931 , 10. Raul Fernandez ESP/Aprilia-Trackhouse 16.656, 11. Miguel Oliveira POR/Aprilia-Trackhouse 18.542, 12. Fabio Quartararo FRA/Yamaha 22.899, 13. Jack Miller AUS/KTM 24.11, 14. Augusto Fernandez ESP/GasGaS-Tech3 27.652, 15. Alex Marquez ESP/Ducati-Gresini 32.855, 16. Luca Marini ITA/Honda 33.529 Did not finish: Johann Zarco FRA/Honda-LCR, Takaaki Nakagami JPN/Honda-LCR, Franco Morbidelli ITA/Ducati-Pramac, Joan Mir ESP/Honda, Alex Rins ESP/Yamaha, Marc Marquez ESP/Ducati-Gresini World championship standings: 1. Jorge Martin ESP/Ducati-Pramac 80 pts, 2. Enea Bastianini ITA/Ducati 59, 3. Maverick Vinales ESP/Aprilia 56, 4. Pedro Acosta ESP/GasGas-Tech3 54, 5. Francesco Bagnaia ITA/Ducati 50, 6. Brad Binder RSA/KTM 49 , 7. Aleix Espargaro ESP/Aprilia 39, 8. Marc Marquez ESP/Ducati-Gresini 36, 9. Fabio Di Giannantonio ITA/Ducati-VR46 25, 10. Jack Miller AUS/KTM 22, 11. Marco Bezzecchi ITA/Ducati-VR46 20, 12. Fabio Quartararo FRA/Yamaha 19In a race as exciting as any rodeo show in the Lone Star State there was high drama with 10 laps to go, Marc Marquez crashing to the ground seconds after taking the lead - the veteran Spaniard's chances of an eighth win at the track and a first for his new Ducati satellite Gresini team buried in the Texan dust.
Championship leader Jorge Martin came in fourth with defending world champion Francesco Bagnaia's factory Ducati in his slipstream.
Untouchable
Vinales had been untouchable all weekend, posting a record qualifying lap and winning Saturday's sprint.
But the Spaniard's golden touch deserted him at lights out as he went wide into the first turn to leave Acosta out in front.
Acosta remained in control to lead a lap of MotoGP for the first time in only his third race in the elite division, followed by Martin and Bagnaia.
After a number of failed attempts Martin finally got the measure of Acosta, who slipped back to fourth.
Regaining his composure after his start to forget Vinales had crept up to seventh place with 15 of the 20 laps remaining.
Just before the halfway point Acosta had muscled his way back into the front, showing racecraft of a rider way beyond his years.
The race script turned on its head on lap 10 with Marquez first hitting the front and then exiting the stage.
Eight laps left and Acosta was overtaken by miracle man Vinales, who was finally back in the position he had started the race.
But with only two seconds covering the top five it was still too close to call.
The speed Vinales and his Aprilia had shown all weekend emerged though in startling fashion as he pulled over a second clear of Acosta with five laps to go.
He avoided any late mishaps to cross the line and create history, but despite his sensational weekend he had a rival for the headlines.
For Acosta to finish second was a truly remarkable performance and a reminder of his tender years came on the podium when he was denied the traditional celebratory bubbly - the legal age for drinking in the United States is 21.
'We don't have nothing to lose, I'm more than happy,' the 19-year-old smiled.
He moved up to fourth in the world championship on 54 points, two behind Vinales. Bastianini climbed into second place on 59 points, with Martin on 80 points ahead of the next race in Spain at the end of the month.