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."
|Wales dealt Priestland blow ahead of Six Nations|
|Zverev fails to reach last 16 after shock loss to Chung|
|Will Smith brings A-list power to the Big Bash League|
|Sleep and chocolate – Halep too exhausted to think about tennis|
|Beal leads Wizards past Pistons, Raptors edge Spurs|
|Dortmund boss Stoger leaves door open for Aubameyang return amid Arsenal links|
|Davis tired but upbeat after matching Aus Open record in marathon loss to Halep|
|Halep prevails in record-equalling epic at Australian Open|
|Neymar can play with Ronaldo at Real Madrid – Mijatovic|
|Dyche compares Sanchez-Man United move to Harry Potter|
|Landry grabs second-round lead as Rahm lurks|
|Kristaps Porzingis takes subtle jab at fans, media for All-Star starter snub|
|Schurrle annoyed at more dropped Dortmund points|
|Carrick expected to become Man Utd coach, reveals Mourinho|
|Koepka faces race to be ready for Masters|
|Barkley ´obsessed´ with becoming world-class at Chelsea|
|Guardiola wants ´three or four´ signings but rules out Sanchez alternative|
|Conte defends Chelsea amid surprise Carroll & Crouch links|
|Atlanta United wrap up Barco signing for MLS record fee|
|Derby County 0 Bristol City 0: Penalty controversy in goalless draw|
|Pau clinch top spot with perfect record|
|Hertha Berlin 1 Borussia Dortmund 1: Kagawa equalises in Aubameyang´s absence|
|Brighton break transfer record for Locadia|
|Dortmund still waiting on ´concrete´ offer for Aubameyang|
|Tom Brady addresses media, reveals no details of hand injury|
|Can will ´give everything´ at Liverpool despite Juventus talks|
|One Direction star trained with Mourinho´s Chelsea|
|Goretzka asks Schalke fans to not turn on him after agreeing Bayern deal|
|Youngs agrees new Leicester deal|
|Wozniacki slams ´rude´ umpire after Bertens win|
|Van Persie secures return to Feyenoord|
|Conte should replace Wenger at Arsenal, claims Carragher|
|Kimmich named Germany’s 2017 Player of the Year|
|Nadal´s best required against in-form Schwartzman|
|Moyes denies scouting Batshuayi and deals Chelsea blow with Carroll injury|
|Vunipola´s Six Nations hopes dashed as 12-week absence confirmed|
|No one like Ronaldinho until Messi - Guardiola lavishes praise on Brazil great|
|Simeone shrugs off mentality concerns at Atletico Madrid|
|Going for gold? Neymar meets Beckham in matching jackets|
|You think I change my mind that quick? – Klopp faithful to No.1 Karius|
|Conte backs Morata to overcome disciplinary concerns|
|Lloris a doubt for Southampton game, confirms Pochettino|
|Pieters edges into Abu Dhabi lead|
|Klopp doubts Alexis Sanchez tug-of-war decided by money|
|Conte admits Pedro dived|
|Valencia tie down Torres amid Real Madrid, Barcelona reports|
|Bangladesh claim record win over Sri Lanka|
|Congratulations! Guardiola offers well wishes to United-bound Sanchez|
|Pele pulls out of London event amid conflicting health reports|
|Conte would be ´happy´ for transfer help|
|Kontaveit dumps Ostapenko out, Wozniacki battles through|
|Sanchez to United not done at all, insists Mourinho|
|Rafa sails through, Kyrgios books Dimitrov showdown|
|Emery refuses to indulge Neymar-Cavani penalty debate|
|Wozniacki battles past stubborn Bertens|
|Goretzka chose Bayern over England, Spain and Italy – Heynckes|
|BBBofC ready to lift Fury suspension|
|I would reject such players – Heynckes slams ´selfish´ Aubameyang|
|Kyrgios proves cool credentials to Will Smith in Tsonga win|
|Western Sydney Wanderers 0 Melbourne Victory 3: Barbarouses extends purple patch|
|Conte likes Dzeko but Chelsea have made no offer, says agent|
|Goretzka´s Bayern move good for Bundesliga, suggests Rummenigge|
|Root guides England home as Finch century proves in vain again|
|Walcott left Arsenal with his things in bin bags|
|Nadal breezes past Dzumhur in Melbourne|
|Schalke confirm Goretzka will join Bayern|
|Sergi Roberto renews Barca deal until 2022|
|Fernandinho seals extended Manchester City contract|
|Ceballos knee knock to be assessed after Real Madrid Copa win|
|O´Sullivan says snooker is ´weighted towards numpties´ as he repeats World Championship threat|