Fernando Alonso has agreed a new deal to remain with McLaren for the 2018 Formula One season.
The two-time Formula One champion has been critical of his team in a frustrating season that has only brought him 10 points.
McLaren will switch from Honda to Renault power units next year after a 2017 to forget and Alonso has decided to stay put as Stoffel Vandoorne's team-mate.
The Spaniard said: "It's fantastic to be able to continue my relationship with everybody at McLaren.
"It was always where my heart was telling me to stay, and I really feel at home here. This is a fantastic team, full of incredible people, with a warmth and friendliness that I've never experienced elsewhere in Formula 1. I'm incredibly happy to be racing here.
"Just as important, McLaren has the technical resource and financial strength to be able to very quickly win races and world championships in F1. Although the last few years have not been easy, we have never forgotten how to win, and I believe we can achieve that again soon.
"The last three years have given us the momentum to plan and build for the future, and I'm looking forward to that journey.
"I'm excited for our future together – and I'm already working hard to make it a success."
Alonso, who missed the Monaco Grand Prix to race in the Indianapolis 500, had warned the Woking-based team that they must provide him with a car capable of winning to convince him to stay.
Racing director Eric Boullier spoke of his delight that the 36-year-old has agreed to a fourth season with McLaren.
He said: "With Fernando, you really can't ask for a better driver to deliver a result for you on a Sunday afternoon – and I think everybody in Formula 1 would acknowledge that sentiment.
"He's always been clear to me that this is a team he loves, and that his heart has always been set on staying. Today's announcement shows that he's fully committed to racing and winning as a McLaren driver, and, while we've often shared his frustrations over the past few years, we now feel that we can deliver on our promise to give him a competitive car next season.
"Consistency of driver line-up is one of those small but essential elements that really helps a team to maintain momentum, and, with Fernando and Stoffel, we're lucky to be writing a fresh chapter with what we believe to be the best driver line-up in Formula 1."
|Balbirnie happy to boost Ireland chances|
|The better Ronaldo is, the better Madrid will be – Vazquez lauds four-goal hero|
|Ireland inspired by retired team-mates – Sexton|
|Indian Wells crown surreal for Osaka|
|F1 2018: Everything you need to know|
|Salah ´unstoppable´ like Messi, says Watford boss Gracia|
|Demanding Mourinho is still special, insists Matic|
|Truex Jr sweeps stages and wins first race of 2018|
|Woods pleased with progress at Bay Hill|
|McIlroy cruises to victory at Bay Hill, where Tiger impresses|
|Dallas 3 Seattle Sounders 0: Dempsey sees red after VAR|
|Ronaldo ´from another galaxy´, says Zidane|
|Del Potro saves match points to stun Federer for Indian Wells title|
|Eusebio Sack-ristan: Real Sociedad part company with head coach|
|Fassone ready for Gattuso talks after Milan resurgence|
|Napoli 1 Genoa 0: Albiol goal maintains pressure on Juve|
|Real Madrid 6 Girona 3: Four-goal Ronaldo continues hot streak with 50th career hat-trick|
|USA boss Sarachan calls up Weah for Paraguay friendly|
|Excellent Leipzig deserved Bayern win - Heynckes|
|Marquez will sleep easily after last-ditch Qatar move|
|Conte impressed by Morata´s return to scoring form|
|I lost the game myself - Simeone accepts responsibility for Atletico Madrid defeat|
|Borussia Dortmund to delay final Stoger decision - Zorc|
|Toulouse topple leaders Montpellier|
|Puel stands by Schmeichel after FA Cup blunder|
|Neymar could be back for Coupe de France final, says Silva|
|Valverde waits on Iniesta answer as Barcelona captain considers exit|
|Magnificent Osaka claims maiden title at Indian Wells|
|Villarreal 2 Atletico Madrid 1: Unal deals LaLiga title race blow for Simeone´s men|
|Leicester City 1 Chelsea 2 (aet): Pedro and Morata send Conte´s men through|
|RB Leipzig 2 Bayern Munich 1: Werner strike seals memorable triumph|
|Gattuso demands lift from out-of-favour Kalinic|
|Karthik hits final-ball six to win Nidahas Trophy|
|Messi puts us where we are right now - Alcacer hails Barcelona superstar|
|Dovizioso holds off Marquez in Qatar to draw first blood|
|Sampaoli ´right´ to pick others - Icardi understands Argentina snub|
|Barcelona 2 Athletic Bilbao 0: Messi and Alcacer secure comfortable success|
|Hughes excited by Southampton quality|
|Nice prepared for ´likely´ Balotelli departure|
|Wales captain Jones set to miss summer Tests|
|Germany defender Halstenberg extends RB Leipzig contract|
|No offers for Roma´s Alisson, says Monchi|
|Constant compliments guarantee defeat, claims Inter boss Spalletti|
|Scoring 100th Serie A goal at Sampdoria was ´destiny´, says Icardi|
|Stoger happy with Gotze response after public criticism|
|AC Milan 3 Chievo 2: Silva spares Rossoneri once more|
|Silva confident Neymar´s future is at PSG|
|´Shameful´ PSG cannot buy a team, says Balotelli|
|All Black Squire suffers broken thumb|
|Everton goal hero Tosun glad Palace move fell through|
|Wigan Athletic 0 Southampton 2: Hojbjerg and Cedric give Hughes first win|
|Pistons got absolutely screwed - Van Gundy slams officiating in loss to Trail Blazers|
|Selection shake-up not down to Ashes drubbing - Strauss|
|Fiorentina rename training ground after late captain Astori|
|Usain Bolt issued Commonwealth Games warning to Yohan Blake|
|Borussia Dortmund 1 Hannover 0: Batshuayi the difference again for Stoger´s men|
|Nice 1 Paris Saint-Germain 2: Alves earns late victory for runaway leaders|
|Icardi 100: Inter captain´s Serie A landmark in Opta numbers|
|Sampdoria 0 Inter 5: Four-goal Icardi demolishes former side|
|Gray´s tackling ton and Italy´s woeful run - the Six Nations in Opta facts|
|Van Gaal: Heynckes can become a Bayern Munich god|
|Real Madrid without Ramos for Girona test|
|South Africa include Morris & Olivier for remainder of Australia series|
|Icardi reaches 100 Serie A goals against former club Sampdoria|
|Ireland Grand Slam heroes denied homecoming by weather|
|Cardiff trip to Derby postponed due to snow|
|Ogbonna gets Italy call as cover for doubtful Chiellini|
|Sunderland suspend Gibson after drink-driving charge|
|Manly claim record Eels thrashing, Knights win late again|
|Winning FA Cup is not important, claims Chelsea coach Conte|