Paris, France: Fernando Alonso will quit endurance racing after June's '24 Hours of Le Mans', which he won last year, the Toyota team said on Wednesday.
The Japanese team said Alonso, who twice won the F1 world championships with Renault in 2005 and 2006, had set himself fresh motor sports targets.
The 2020 Dakar Rally in Saudi Arabia is thought to be high on his agenda after he tested the Toyota Hilux in South Africa alongside 2009 Dakar champion Giniel de Villiers.
The 37-year-old Alonso who raced F1 until last season is widely viewed as one of the top talents of his generation, and enjoys global star status after racing 312 Grand Prix, winning 32 of them.
"I have enjoyed being part of Toyota Gazoo Racing, but this chapter is ending," Alonso said in a press release on Wednesday.
"Winning the Le Mans 24 Hours is one of the highlights of my career as part of my triple crown challenge," said Alonso, who races the Indy 500 later this month in his triple crown (Monaco GP, Le Mans and the Indy) bid.
Alonso will contest the Indianapolis 500 race in the United States with the McLaren team, for whom he has also done tests in F1 cars this year.
"I will always remember the victory we achieved together as a team last year," said the one time Ferrari ace.
"Now is a good time to take on new challenges and there are many interesting opportunities," he said.
Toyota wished Alonso well.
I am sad to say goodbye to Fernando... he has written his name in Toyota's motorsport history," the team president Hisatake Murata said.
New Zealand's Brendon Hartley will take up the vacant slot which Alonso's departure leaves open.