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."
|Leinster see off Scarlets as Munster come up short in Cardiff|
|New No.1 Federer earns gritty Seppi win to book Rotterdam final|
|Mata ´still up for VAR´ despite disallowed goal at Huddersfield|
|Valverde: Barcelona had to suffer at Eibar|
|Championship Review: Fulham end Villa run, Cardiff pounce|
|Resilient Kvitova ousts Wozniacki in Doha thriller|
|Huddersfield Town 0 Manchester United 2: Lukaku sends visitors through after VAR controversy|
|Toomua inspires Tigers win over Quins, Worcester beat Gloucester|
|Bayern Munich boss Heynckes hails game-changing Muller|
|Locadia benefiting from ´competitive´ Brighton - Hughton|
|Baby on board? Alba dedicates Barca goal to girlfriend|
|West Brom future ´not a decision for me´, says Pardew|
|Lions get De Bruin off to winning start|
|Paris Saint-Germain 5 Strasbourg 2: Cavani at the double in bounce-back win|
|Bar-celona! Messi posts unwanted record|
|Barca go 31 LaLiga games unbeaten to tie club record|
|Mourinho: I don´t know and I don´t care when Pogba returns|
|Brighton and Hove Albion 3 Coventry City 1: Locadia, Ulloa lead Seagulls to quarter-finals|
|EIbar 0 Barcelona 2: Suarez and Alba seal points as Orellana sees red|
|West Brom 1 Southampton 2: Rondon stunner in vain as Baggies drop out|
|Wolfsburg 1 Bayern Munich 2: Lewandowski spot-on after Robben´s penalty miss|
|I hope Cutrone finds a beautiful girlfriend so he can rest and make love - Gattuso|
|Wellens claims Ruta del Sol lead, Froome suffers puncture|
|Goffin forced to retire in Rotterdam following freak eye injury|
|Allegri denies Champions League ´obsession´ ahead of Turin derby|
|Barry, Evans start for West Brom after training camp incident|
|Bottas unaffected by ´Halo´ on simulation runs|
|Sheffield Wednesday 0 Swansea City 0: Carvalhal settles for replay on Hillsborough return|
|Management ´tiring´ but Zidane not ready to leave Madrid just yet|
|Thiago back for Bayern as Heynckes rests stars for Besiktas|
|Simeone urges Atletico fans to get behind Griezmann|
|Robben amazed by Guardiola´s impact at Manchester City|
|Three-way tie for lead in Oman as Pavon falls away|
|McIlroy frustrated by added scrutiny of playing with Woods|
|Morgan to take it slow with Stokes and backs Rashid|
|Pogba out of Man Utd´s Huddersfield trip with illness|
|A-League Review: Perth ´Panenka´ punished, 10-man Adelaide rescue late draw|
|Dragons and Rabbitohs see off Super League opponents|
|Robben targets two more years at the ´highest level´|
|Rashford and Herrera ´have a chance´ of making Sevilla trip|
|Mixed feelings for Tiger Woods after missed cut at Riviera|
|Emery defends PSG star Neymar after Madrid display|
|Nishikori stays hot in New York as Anderson awaits|
|Kevin Durant: Laura Ingraham´s ignorant comment was racist|
|Thiem sets up Monfils semi-final showdown|
|Mahrez saga now over, says Leicester boss Puel|
|Cantlay, McDowell and Saunders top at Riviera as Woods makes early exit|
|Tiger Woods misses cut at Genesis Open|
|Astros manager Hinch on Cole: He doesn´t need to be fixed|
|Alonso to return for Barca clash but Bakayoko set to miss first leg – Conte|
|Mourinho: Manchester United will sign a midfielder|
|Record-breaking Federer rises back to summit, Goffin to meet Dimitrov|
|Kobe Bryant says Lakers ´shouldn´t need´ to recruit free agents|
|Federer pokes fun at himself after becoming oldest world number one|
|Woods to play Honda Classic as comeback continues|
|Glasgow Warriors book finals berth as Zebre upset Connacht|
|Conte given selection headache ahead of Barcelona clash|
|Atkins at the double as Warrington see off Widnes|
|Giroud ´relieved´ to get first Chelsea goal|
|Sarries scrap for Sale success|
|Records tumble in Federer´s latest remarkable ascent to the top|
|Chelsea 4 Hull City 0: Giroud scores and Willian stars as Blues reach last eight|
|Leicester City 1 Sheffield United 0: Vardy header secures quarter-final spot|
|Agassi congratulates Federer after losing rankings record|
|Kvitova to face Wozniacki after Goerges pulls out|
|I cry often and I cry alone - Buffon benefits from his emotional side|
|This one means the most - emotional Federer revels in return to the top|
|Mason retirement ´heart-breaking´, says Cahill|
|After five years and three months, Roger Federer is back on top of the world|
|Federer downs Haase to become oldest world number one|