Ferrari driver Felipe Massa will move to Williams next season as team-mate to Finn Valtteri Bottas.
The 32-year-old Brazilian will replace Venezuelan Pastor Maldonado, Williams announced on Monday.
Massa said: “When I was a kid, I always dreamed of racing for Williams, Ferrari or McLaren and I’m glad to be signing with another icon of the sport.”
Maldonado is likely to move to Lotus to replace Kimi Raikkonen but also has options at Force India or Sauber.
Raikkonen was confirmed as Fernando Alonso’s new team-mate at Ferrari in September.
Williams have signed Massa, who leaves Ferrari after eight years in which he won 11 grands prix, on a three-year contract to add experience as they attempt to rebuild the team.
They are having what is set to be the least successful season in their history.
The Oxfordshire-based team, who dominated F1 for large portions of the 1980s and 90s, have so far scored only one point and lie ninth of 11 teams in the constructors’ championship with two races to go.