Four-time world champion Sebastian Vettel has announced he will retire from Formula One at the end of the season.
Vettel, who currently drives for Aston Martin F1, won four world championships in succession between 2010 and 2013.
The 35-year-old German made the announcement ahead of the Hungarian Grand Prix.
Vettel, who lies 14th in the championship, said: "I have had the privilege of working with many fantastic people in Formula One over the past 15 years - there are far too many to mention and thank.
"The decision to retire has been a difficult one for me to take, and I have spent a lot of time thinking about it.
"At the end of the year I want to take some more time to reflect on what I will focus on next; it is very clear to me that, being a father, I want to spend more time with my family.
"But today is not about saying goodbye. Rather, it is about saying thank you - to everyone - not least to the fans, without whose passionate support Formula One could not exist."
Vettel won four consecutive titles with Red Bull between 2010 and 2013 before joining Ferrari two years later.
The German was hired to end Ferrari's title drought but failed - and was ultimately dropped by the Italian team at the end of 2019.
Vettel moved to Aston Martin in 2020 ahead of their return to the Formula One grid after decades away.
But the British-based team have struggled for results and Vettel has now decided to walk away, rather than continue for another campaign.
He added: "Over the past two years I have been an Aston Martin driver - and, although our results have not been as good as we had hoped, it is very clear to me that everything is being put together that a team needs to race at the very highest level for years to come.
"I have really enjoyed working with such a great bunch of people.
"I hope that the work I did last year and am continuing to do this year will be helpful in the development of a team that will win in the future, and I will work as hard as I can between now and the end of the year with that goal in mind, giving as always my best in the last 10 races."
Vettel will sign off at the season-ending Abu Dhabi Grand Prix in November which will mark his 300th race.
Lawrence Stroll - the Canadian fashion billionaire who owns Aston Martin - paid tribute to Vettel.
He said: "I want to thank Sebastian from the bottom of my heart for the great work that he has done for Aston Martin over the past year and a half.
"We made it clear to him that we wanted him to continue with us next year, but in the end he has done what he feels is right for himself and his family, and of course we respect that.
"He has driven some fantastic races for us, and, behind the scenes, his experience and expertise with our engineers have been extremely valuable.
"He is one of the all-time greats of Formula One, and it has been a privilege to have been able to work with him.
"He will continue to race for us up to and including the 2022 Abu Dhabi Grand Prix, which will be his 300th Grand Prix entry. We will give him a fabulous send-off."