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."
|Stones will watch re-runs of England´s World Cup matches|
|Ferdinand challenges Mourinho to unleash Pogba at United|
|Mbappe: I´m staying at PSG|
|Former NHL goalie Ray Emery found dead|
|Pirates secure five-game sweep of Brewers with walk-off win|
|WATCH: LeBron receives standing ovation at Lakers´ summer league game|
|Tony Romo wins celebrity-filled American Century Championship|
|McGregor praises Putin after attending World Cup final|
|Open-bound Kim claims maiden title with eight-shot triumph|
|Eagles running back Sproles plans to retire after next season|
|World Cup winner Rami retires from international football|
|Wimbledon champion Djokovic did not expect grand slam glory so soon|
|Ibrahimovic praises Pogba after World Cup final display|
|Wimbledon diary: Avengers too late for an Infinity War as Djokovic triumphs|
|Deschamp-agne – France´s 2018 vintage interrupt news conference to drench coach|
|I may have to dust my boots off! - Pele threatened by Mbappe exploits|
|WATCH: Mendy and Pogba dab with president Macron after World Cup win|
|Woods embracing ´different´ Carnoustie challenge ahead of Open return|
|Argentina dismiss Sampaoli after chaotic World Cup|
|France celebrates World Cup triumph|
|Djokovic made ´improvised Wimbledon trophies´ as a boy|
|Stone goes agonisingly close to 59 as Pepperell & Dantorp also make Open|
|Outcast Benzema delights in France win|
|Final a triumph in itself given Croatia´s off-field turmoil|
|Anderson laments Wimbledon final nerves|
|Deschamps joins elite club, Mbappe second to Pele - the best stats from the World Cup final|
|Belgium´s Courtois wins World Cup Golden Glove|
|Collarbone fracture confirmed for ´devastated´ Porte|
|World Cup final player ratings: Griezmann, Mbappe inspire France as Croatia fall short|
|World Cup winner Giroud ends tournament without shot on target|
|Modric wins World Cup Golden Ball|
|Mbappe wins World Cup Young Player award|
|Deschamps redeemed as France win World Cup final for the ages|
|France 4 Croatia 2: Twitter Report|
|Tomlin optimistic over Bell contract|
|Kane wins World Cup Golden Boot|
|Ajax keen on Blind deal - Van der Sar|
|France 4 Croatia 2: Pogba and Mbappe seal thrilling World Cup triumph|
|Anderson would have played another 21 hours to reach Wimbledon final|
|Djokovic delighted to crown ´comeback´ with Wimbledon glory|
|World Cup final interrupted by pitch invaders - Pussy Riot claim responsibility|
|Djokovic´s grass-court U-turn pays ultimate dividends with Wimbledon title|
|Mandzukic makes World Cup history with early own goal|
|Dominant Djokovic beats Anderson to regain Wimbledon title|
|Everybody said I´m done - Degenkolb revels in first Tour victory|
|´Big party´ for Marquez after Sachsenring success|
|Hazard enjoys Belgium´s welcome home|
|Ex-AC Milan president Berlusconi conflicted over Ronaldo to Juventus|
|Spain did not contact Martinez over head coach vacancy|
|Maybe the VAR was watching The Simpsons! - RSL coach Petke slams MLS officials|
|Cubs´ Darvish hopes to return by next weekend|
|France and Croatia name unchanged sides for World Cup final|
|Marquez maintains Sachsenring dominance|
|Courtois claims World Cup has boosted his value|
|Buffon beaten on difficult PSG debut|
|Vince called up for Headingley decider|
|Farah inspires Tigers win over Dragons, Warriors and Roosters triumph|
|Crash forces Porte out of Tour for second year running|
|Ronaldo considered Napoli move, says De Laurentiis|
|Mafi arrested for allegedly assaulting Rebels team-mate|
|Everybody is welcome - Croatia pitch for neutral support in World Cup final|
|West Ham seal club-record swoop for Felipe Anderson|
|Rooney applauds England for capturing fans´ imagination|
|Krajicek urges Anderson to go for broke in Wimbledon final|
|Wimbledon 2018: Djokovic v Anderson in Opta numbers|
|Kohli defends Dhoni after Lord´s boos|
|Wimbledon finalist Djokovic can win the next six majors, claims Krajicek|
|We´re ´blessed´ to watch Mbappe, says Kaka|
|Bogaerts hits walk-off grand slam to deliver Red Sox win over Blue Jays|
|Cardinals dismiss Matheny, name Shildt interim manager|