Valentino Rossi brought the curtain down on his illustrious MotoGP career with a 10th-placed finish at the Valencia Grand Prix while his protege Francesco Bagnaia crossed the line first in the final race of the campaign.
Seven-time MotoGP champion Rossi, 42, confirmed in August he would be hanging up his leathers at the end of the 2021 season, and he closed things out with a drama-free ride as he achieved his pre-weekend goal of a top-10 finish.
Danil Petrucci, who finished in 18th, is also departing MotoGP.
Rossi received a hero's reception at the end of the race as riders, fans and crew swarmed and held him aloft, with his old friend Ronaldo having waved the final chequered flag of his career.
The veteran enjoyed a solid performance in qualifying, securing a respectable 10th place on the grid, but it was his countryman Bagnaia and rookie Jorge Martin at the front who occupied the main in-race focus.
Martin started on pole for the fourth time this season and showed excellent poise to hold off Bagnaia for a while, but he left the door open at the end of the 15th lap as the Italian's persistence paid off.
Bagnaia was then in a class of his own for the rest of the race as Martin failed to reel him back in, though the latter did just enough to hold off Jack Miller to secure second.
Ducati bikes locked out the podium as their factory team secured the teams' title in emphatic fashion, but all the attention was on Rossi at the end, with various teams producing their own tributes to him as he rode back down the pit lane for the last time.