Seven-time MotoGP world champion Valentino Rossi will start Sunday's season-ending Valencia Grand Prix from tenth place on the grid, in the final race of his long career.
Rossi, 42, squeezed into the top ten as 23-year-old Spanish rider Jorge Martin secured pole position on his Ducati in qualifying on Saturday.
Italian rider Francesco Bagnaia, Rossi's Italian protege who was denied a sixth straight pole position, will start from second place.
Already-crowned world champion Fabio Quartararo could do no better than eighth place.
Today @ValeYellow46’s racing story in @MotoGP comes to a close. HRC and the Repsol Honda Team wish Valentino all the best in his future.— Repsol Honda Team (@HRC_MotoGP) November 14, 2021
Together we won three premier class titles, including the last two-stroke and first four-stroke championships. #GrazieVale pic.twitter.com/lDwQv9aUnr
The yellow flags of Rossi supporters will dominate on Sunday in what organisers believe will be a 75 000-strong crowd for the Italian's emotional farewell.
It will be Rossi's 432nd Grand Prix in all categories since he began his career in 1996.
As well as his seven premier class titles, he was also world champion in the 125cc and 250cc divisions in his early years.
Rossi is looking to the future by building his legacy at his "VR46 Academy", and his VR46 team will make its debut in MotoGP next year as a Ducati satellite.
He is also planning to try his luck on four wheels in GT Racing, and is soon to become a father as his partner Francesca Novello is expecting a baby girl.
"I can't complain, I have had a very long and successful career. Now I want to enjoy life -- I will be a father next year," Rossi said on Thursday.