McLaren has announced Carlos Sainz Jr will race for it in the 2019 Formula 1 season, replacing the outgoing Fernando Alonso.
As reported by Autosport, Sainz emerged as a favoured choice by McLaren as it assessed its options for 2019, when it will lose two-time world champion Alonso from its F1 line-up.
McLaren has now confirmed Sainz as one of its 2019 drivers on a multi-year deal.
"We're incredibly excited to have Carlos join us as a McLaren driver," said McLaren CEO Zak Brown.
"We've been assessing him for some time now and rate him very highly among the next generation of young talent emerging through the ranks in Formula 1."
The main complication McLaren faced with Sainz was his contractual situation with Red Bull.
Sainz is on loan from Red Bull at Renault this season but his long-time backer retained an option to recall him to the senior team until September.
With Daniel Ricciardo making the shock decision to quit Red Bull for Renault, taking Sainz's seat, McLaren had to wait until Red Bull decided whether to promote Sainz or Pierre Gasly.
Thursday's confirmation that Sainz will race for McLaren next season means Red Bull has relinquished its option early and indicates it has committed to Toro Rosso driver Gasly partnering Max Verstappen in 2019.
Sainz said: "I'm delighted to finally be able to confirm that I'll be a McLaren driver from the 2019 season.
"It's something I've been looking at for a while and I'm very excited about this next chapter in my career."
Sainz is a proven operator in F1's midfield and gives McLaren a good insurance policy as it debates what to do with the drivers already on its books.
Reserve driver Lando Norris, Mercedes junior Esteban Ocon and current McLaren racer Stoffel Vandoorne are all linked to the second seat.
The team says it will announce its second driver "in due course".
McLaren is unconvinced by Vandoorne, who has been comfortably eclipsed as Alonso's team-mate, but has also appeared uncertain about when to promote reserve driver Lando Norris.
As Alonso's exit meant both McLaren drives became available instead of one, Formula 2 title challenger Norris now has a much more concrete chance to race in F1 next year.
He is believed to face competition from current Force India driver Ocon, whom Mercedes is looking to place somewhere on loan.
Mercedes had attempted to send Ocon to Renault, but Ricciardo's move scotched that.
It has therefore revived negotiations with McLaren, having previously considered it a viable destination for Ocon before it pushed him towards Renault.
Vandoorne's chances of staying in F1 appear limited if he is dropped by McLaren.
He could try to take advantage of the Gasly and Sainz moves to force himself into Toro Rosso but that would require Red Bull taking the unusual step of picking up a driver rejected by one of its rivals.
Alternatively, he may turn to Sauber - now run by Fred Vasseur, whose ART squad took Vandoorne to the 2015 GP2 title. Sauber also features Vandoorne's manager Alessandro Alunni Bravi in its ownership structure.