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."
|Giroud: It´s coming home|
|Harper wins Home Run Derby in Nationals Park|
|Brighton sign Button from Fulham|
|Bolt set to trial with A-League club Central Coast Mariners|
|Thomas asks Seahawks for extension or trade|
|Walker doubts he´ll join Knicks, wants ´long´ stay at Hornets|
|Socceroos hero Cahill retires from internationals|
|Record income revenue for Barcelona|
|Kudla untroubled as Young bows out in Newport|
|Celtics still hoping to re-sign Smart|
|Villarreal sign highly rated Velez midfielder Caseres|
|Juventus signing Ronaldo should give Milan optimism – Kaka|
|Berrettini masters Mayer in Bastad|
|Manchester United and Ajax agree Daley Blind transfer|
|Familiarity with demands of Real Madrid an advantage – Lopetegui|
|Parmentier rallies to avoid Bucharest exit, Arruabarrena bows out in Gstaad|
|Steelers fail to sign Bell to long-term deal|
|Over 10 per cent of Croatia´s population welcomes World Cup heroes home|
|Thierry Henry quits pundit role to focus on coaching|
|France´s World Cup winners given heroes´ welcome in Paris|
|At the end we will see who is best - Ronaldo sidesteps Messi rivalry|
|Qatar? China? Ronaldo only has eyes for glory at Juventus|
|Proud Kane praises team-mates after Golden Boot win|
|The Open 2018 diary: Is that Tiger Woods? Harrington feels the Burn...|
|Porte targeting Vuelta after Tour de France anguish|
|Maradona madness, #WaistcoatWednesday, bruised Batshuayi - Alternative World Cup awards|
|It could be the best time - Martinez hints at Hazard Chelsea exit|
|England call up Billings as cover for injury doubt Roy|
|McIlroy on track for fitting major haul - Harrington|
|Froome plays down Thomas battle for Sky supremacy|
|Carnoustie record counts for little at The Open, says Fleetwood|
|I don´t see it - Napoli chief De Laurentiis plays down talk of Callejon-Suso swap|
|One or two changes required at Chelsea, says Sarri|
|Monaco confirm Golovin approach|
|Let´s keep making noise! - Serena dedicates Wimbledon run to fellow mothers|
|Full list of Open tee times|
|Fakhar inspires another big Pakistan ODI win|
|Spieth ´annoyed´ by re-watch of 13th hole|
|Kaka claims Ronaldo arrival will boost all Italian clubs|
|Spieth vows to be more artist than tactician in Open defence|
|Conte thanks Chelsea players, staff and fans|
|Rodgers: I´d love to play with the Packers to 40|
|Sevilla insist N´Zonzi will cost €40m|
|Hugill shows mystic powers with accurate World Cup predictions|
|World Cup 2018: FARE ready for post-tournament challenges in Russia|
|Woods grouped with Matsuyama and Knox at Open|
|Matthaus questions idea of French dynasty|
|Chandimal, Sri Lanka coach and manager banned for two Tests and four ODIs|
|Sassuolo demand at least €30m for Berardi|
|French media revels in ´crazy´ triumph|
|Mafi released on bail after alleged assault|
|Bierhoff must go! Berthold calls for Germany changes|
|Joshua to fight Povetkin in September|
|World Cup 2018: Goal-laden final adds to staggering World Cup stats|
|Runners and Ryders: Molinari impresses again as stars prepare for The Open|
|Macron to greet France team after Champs Elysees parade|
|Casillas and Suarez critical of VAR after World Cup final|
|TMO protocol clearly not working, says SANZAAR|
|Americans seek joy of six at Carnoustie, Rose out to end wretched run - The Open in Opta facts|
|Ronaldo arrives in Turin for Juventus medical|
|Stone: I had no idea what my score was!|
|The Open: A look back at Van de Velde´s Carnoustie calamity|
|Rakitic proud of ´brother´ Modric´s Golden Ball award|
|Serena can surpass Court, but Graf was the real target - Krajicek|
|Ronaldo moved to remain motivated - Kaka|
|Silva confident on Everton transfer targets|
|Golden Boot winner Kane aims to break August hoodoo|
|NFL training camp 2018: Contract holdouts and where they stand|
|Guardiola took me to another level - Alaba|
|Madrid selling Ronaldo a ´historic error´ - Calderon|