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."
|LaLiga strugglers Espanyol show Flores the door|
|Messi is an alien but Sevilla can bring Barcelona back down to Earth, insists Montella|
|Four in a row for Wigan as Saints thrash Huddersfield|
|Reims´ latest vintage secure promotion to Ligue 1|
|Gloucester cruise into Challenge Cup final|
|Quiros claims one-shot lead despite rollercoaster round two|
|Millwall 0 Fulham 3: Sessegnon on target as Jokanovic´s side go second|
|Curry to begin modified practices on Saturday|
|Ancelotti welcomes Arsenal links, praises Wenger decision|
|Nadal produces ´best match of tournament´ as Dimitrov beats doubles partner|
|I think Arsenal would be good for a German coach - Podolski|
|Wilshere, Ramsey, Mertesacker and the best social media reaction to Wenger´s Arsenal departure|
|Watson haunts Royals with Super Kings hundred|
|Selby bracing himself for tough title defence|
|Exeter left ´disappointed´ by Ampadu transfer verdict|
|Froome thrilled with ´perfect´ build-up to Giro|
|Copa del Rey glory a good way to put European exit behind us, says Valverde|
|LMA hails Wenger´s impact at Arsenal|
|Wenger passes the torch as Arsenal face up to his formidable legacy|
|Gazidis: Arsenal cannot replace Wenger – we need a new path|
|Ronnie rivals never doubted Crucible attendance of ´snooker´s Tiger Woods´|
|Van Bronckhorst using Wenger´s methods at Feyenoord|
|Former NFL lineman Evan Mathis´ 1952 Mickey Mantle card sells for $2.88M|
|Wasps forward Johnson suspended for failed drugs test|
|I´d break another finger to win the Copa del Rey - Rakitic|
|Arsene Wenger: The Arsenal manager´s worst moments|
|Wright: More Arsenal changes needed after Wenger exit|
|Guardiola wishes Iniesta the best ahead of potential Barcelona exit|
|Real football people appreciate Wenger - Moyes, Warnock and more pay tribute|
|Guardiola set for contract talks with Manchester City|
|Controversial Slater score helps Storm to victory|
|Liverpool top, DVDs just invented and no Harry Potter – The world when Wenger joined Arsenal|
|Heynckes cannot compare Lewandowski and Ronaldo|
|Ronaldinho, Ronaldo, Messi, Mbappe and more – the stars Wenger claims he could have signed|
|Ferguson: Rival, colleague and friend Wenger is one of the greatest|
|Gattuso wary of challenge for Milan´s European place|
|Neuer returns to Bayern training after seventh-month absence|
|Wembley no advantage for Spurs in semi-final, warns Mourinho|
|WATCH: Dez Bryant works out with Odell Beckham Jr. as rumors swirl|
|PSG, Monaco, the CSL, France? - Wenger´s possible next moves|
|Rematches, rivalries and a mouth-watering Wembley clash – The pick of the 2018 NFL schedule|
|Wenger ´an example´ to foreign Premier League managers like Benitez|
|Wilshere: Wenger is like a father|
|Guardiola wants Wenger to find new role in football|
|Henry: Wenger´s Arsenal legacy is untouchable|
|Mourinho: Wenger feud shows how much I respect him|
|Conte: Top four still possible for Chelsea|
|Frizell inspires Highlanders win over Blues, Lions beat Waratahs|
|Majestic Nadal hammers Thiem in Monte Carlo|
|Aguero out for the season - Guardiola|
|Wenger´s 22-year Arsenal tenure will not be matched, says Conte|
|Celtic would let Rodgers move to Arsenal|
|Squillaci, Cech & Wenger´s worst signings at Arsenal|
|Heynckes: I cannot imagine Wenger at another club|
|Thank you Arsene - Emery pays tribute to Wenger|
|Fabregas and Van Persie join tributes to Arsenal boss Wenger|
|Smith confirmed as England national selector|
|1,228 matches and seven FA Cups - Wenger at Arsenal in Opta numbers|
|Mertesacker ´emotional´ as Wenger announces Arsenal departure|
|Ancelotti, Tuchel, Henry – Where do Arsenal turn after Wenger?|
|Klopp doesn´t want Liverpool to chase Golden Boot for Salah|
|´The Arsene Wenger Stadium´ - Former Arsenal players call for tribute|
|Wenger was so good ´it was scary´, says Merson|
|Shields requests to be released for England duty|
|Khan: ´Cheat´ Alvarez got off lightly|
|I fell in love with playing for Wenger - Winterburn|
|Van der Sar urges Kluivert to continue Ajax development|
|Cockerill signs Edinburgh contract extension|
|Klopp pays tribute to ´outstanding´ Wenger|
|Wenger´s consistency will never be matched – Kroenke hails Arsenal manager´s legacy|