Two-time world champion Fernando Alonso will not drive for the McLaren Mercedes team next season after getting out of his contract, Spanish media reported on Friday.
The Spaniard, who had joined the British squad from Renault this year, had signed a three-year deal with McLaren, but his relationship with the squad and team boss Ron Dennis deteriorated badly throughout the season.
The problems at McLaren led Alonso and his management to try and find a way out of the team, and a deal was finally agreed on Friday, top Spanish papers reported on Friday.
They said Alonso will not have to pay any money for his exit.
McLaren were unavailable for comment.
"Everything has ended up well," Alonso's manager Luis Garcia Abad told Spanish media.
The Spaniard has been linked with several teams in recent weeks, including Renault, Williams, Red Bull and Toyota.
Alonso finished in third place in this year's standings behind Ferrari's Kimi Raikkonen and McLaren teammate Lewis Hamilton.