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."
|Verdi wants Bologna stay amid Napoli links|
|Ronaldinho retires – A shining light of Brazil´s 2002 World Cup-winning team|
|Ronaldinho retires – a World Cup and Ballon d´Or among Brazil great´s prizes|
|Celtics great White dead at 71|
|World Cup glory and Bernabeu magic - Ronaldinho´s best moments for Barca and Brazil|
|Trust the Process – 76ers only behind Warriors and Cavs in merchandise sales|
|Ligue 1 Review: Balotelli at the double as Payet shines and Malcom toils|
|Pato still dreaming of World Cup selection|
|FA Cup Review: Iheanacho makes VAR history, kit confusion reigns|
|Wallaby saves wallaby: Farr-Jones in Sydney Harbour Bridge rescue mission|
|2016-17 UEFA Study: PSG, Man City drive record-breaking spending|
|Conte packing in homework as Chelsea games stack up|
|2016-17 UEFA Study: The headlines in transfers, wages and revenues|
|2016-17 UEFA Study: Manchester United record highest revenue but largest debt|
|Monaco stay perfect, Murcia overcome Oldenburg|
|Iheanacho scores English football´s first VAR goal|
|Materazzi not surprised by Coutinho transfer fee|
|Ronaldinho retires - Brazil and Barca great plans 2018 farewell|
|Jags RB Leonard Fournette uninjured in three-car accident|
|India revenge would heal Proteas´ scars - Elgar|
|Koziello swaps Nice for Cologne|
|Simeone ready to unleash Costa and Vitolo alongside Griezmann|
|Head coach Cooper to leave Stade Francais|
|Silverwood plays down talk of replacing Bayliss|
|Lambert ´never thought´ he would return to Premier League|
|Wenger ´very aggressive´ towards referee Dean, says FA report|
|Reported Arsenal target Malcom starts for Bordeaux vs Caen|
|Valverde not making big deal of Dembele´s latest Barca blow|
|Costly day for Kohli as Proteas close in on series win|
|Date set for Afghanistan´s maiden Test|
|Returning McIlroy ready to end winless run|
|In-form Short leaves coach Kirsten needing dental treatment|
|Arsenal will have a ´hard time´ signing Malcom|
|Ronaldo and Madrid nominated for Laureus awards|
|Nantes´ Diego Carlos brands Chapron clash ´historic´|
|This is not important - Conte unconcerned if substitutions upset Hazard|
|Conte ´doesn´t think´ Chelsea have pursued Sanchez|
|Cobblestone climb part of 2019 Tour de France Grand Depart|
|Emery hints at Neymar return against Dijon|
|Joshua labels Parker claims ´fake news´|
|´Emotional´ Fleetwood honoured by Seve Ballesteros Award|
|Tears for Kvitova as Bouchard sets up Halep meeting|
|Mkhitaryan key to United-Sanchez deal, claims Raiola|
|WATCH: Sabalenka wins point using racquet throat|
|Federer, Djokovic and Zverev among Australian Open first-round winners|
|Kubica gets reserve role as Williams hire Sirotkin|
|Shambolic Stars out after Sixers thrashing|
|Wales pick uncapped Worcester wing Adams in Six Nations squad|
|Tevez: CSL spell was a holiday|
|Mignolet considering Liverpool future|
|Laidlaw among several returning stars in Scotland Six Nations squad|
|´Fairy tale´ 2017 motivation for Federer|
|Fred waiting for Guardiola call amid Man City speculation|
|Dominant Federer makes light work of Bedene|
|Halep faces nervous wait over ankle injury|
|Inter confident but patient over Rafinha|
|Kohli fined after umpire outburst|
|Djokovic hits back at Australian Open boycott suggestions|
|De Grandhomme lifts Black Caps to win in Taylor´s 200th ODI|
|Giggs had counselling after Old Trafford exit|
|Durant continues dominance over Cavs as Warriors win|
|Halep survives scare and rolled ankle at Melbourne Park|
|Westbrook ejected against Kings after arguing call|
|Djokovic eases past Young on return|
|Sharapova staying grounded after Melbourne win|
|Neville: Mourinho would happily swap Mkhitaryan for Sanchez|
|Raonic suffers surprise loss in Melbourne|
|Sharapova wins on return to Australian Open|
|Pirates send McCutchen to Giants|
|Man United becoming Pogba´s team – Mourinho|