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."
|England won´t suffer Gabba ambush, Malan claims|
|Rose in contention to face Dortmund as Pochettino denies ´issue´ with defender|
|Benzema knows he can give more – Zidane|
|I´ve fulfilled my dreams already – Klopp has no plans to coach Barcelona|
|Memorable Ashes Moments: Unlikely saviour Agar falls agonisingly short|
|Wallabies coach Cheika faces investigation|
|The Ashes: Australia squad profiles|
|Aubameyang will face Tottenham, Bosz confirms|
|Klopp expects Matip to face Chelsea, Lallana return getting ´nearer´|
|Brown could return for England, Underhill out|
|Haye´s rematch with Bellew off due to bicep tear|
|The Ashes: England squad profiles|
|Gatland vows not to rise to New Zealand media barbs|
|Berizzo looking to former Red Aspas to provide lessons for Sevilla|
|Mangala ready to pounce, but realistic on Man City playing time|
|The Ashes: How the urn will be won - the case for Australia and England|
|Innovation key as WTA Media embraces evolving viewing habits|
|Trump calls for Lynch to be suspended as anthem row returns|
|Mendy injury means Aguero or Jesus for Guardiola|
|Kohli proud of India after almost snatching Kolkata win|
|The Ashes: Key contests in the battle for the urn|
|Guardiola sends ´big hug´ to ´amazing, so gentle´ Pulis|
|Tavecchio quits as head of FIGC, claims board have refused to resign|
|Benedetto facing Argentina World Cup KO with cruciate injury|
|Hansen hails All Blacks progress|
|Kohli´s record century precedes Bhuvneshwar heroics, but Sri Lanka cling on|
|Shape up! Heynckes reveals demand to Bayern star Vidal|
|Australia hope to open England ´scars´ in Brisbane|
|Smiling Broad sports bruise after golfing mishap|
|Ramos sits out Madrid trip to APOEL|
|West Brom sack Pulis after wretched run|
|Ball fighting fit ahead of Ashes opener at the Gabba|
|Murray should appoint Delgado as Lendl replacement - Henman|
|Former Wimbledon champion Novotna dies aged 49|
|Lloris wants Spurs to forget title and focus on top four|
|Pogba no Gerrard yet, says Benitez|
|Pearce released from Roosters contract|
|Expect to get six ducks – Paine reveals Rogers´ Ashes advice|
|Lyon: I don´t care if Stokes plays Ashes|
|Curry´s offensive explosion leads Warriors past Nets|
|Ball records second triple-double to join Magic, West in record books|
|Patriots, Ravens win among multiple blowouts|
|Flyers´ Gudas suspended for 10 games for violent slash|
|Two-time NBA All-Star David Lee announces retirement|
|Guardiola will ´kill´ City stars if they get complacent|
|Bills coach McDermott to ´evaluate´ quarterback position|
|LeBron on Kaepernick controversy: I don´t respect the NFL|
|Ibrahimovic: My injury was worse than people know|
|Russell to leave Warriors at end of season|
|Cook cruises to first PGA Tour win|
|Truex wins first NASCAR championship|
|Cardinals´ Fitzgerald now fifth all-time in receiving yards|
|Icardi like a ´raptor pouncing on its prey´, says Spalletti|
|Tired Goffin insists: ´I will be ready for Davis Cup final´|
|In-form Chelsea have regained hunger - Conte|
|Stones can bounce back stronger - Kompany|
|Guardiola ready to risk Kompany for Man City after Stones´ injury|
|City style suits me and thrills neutrals, says De Bruyne|
|Dimitrov thanks Scherzinger for giving him the X Factor at ATP Finals|
|Inter 2 Atalanta 0: Icardi brace sends Spalletti´s side second|
|Giampaolo promises more from ´extraordinary´ Sampdoria|
|Dimitrov overcomes gutsy Goffin to win ATP Finals|
|Memorable Ashes Moments: Australia skittled for 98 at MCG|
|NFL extends deal to play in Mexico through 2021|
|Record-breaking Valencia tee up blockbuster Barcelona clash|
|Poor West Ham performance at Watford was to be expected - Moyes|
|We will see what happens in the future - Silva non-committal on Everton rumours|
|Stones can bounce back stronger - Kompany|
|Racing climb above Toulon in thriller|
|Football needs to do more to combat racism - Boateng|