Williams have confirmed that Felipe Massa will drive for the team next season in Formula 1.
The 32-year-old Brazilian, who will race alongside Finland's Valtteri Bottas, has replaced Pastor Maldonado.
Massa recently revealed that he would be leaving Ferrari at the end of the current season after spending eight years with the Italian outfit.
"Williams is one of the most successful and important teams of all time in Formula 1," Massa told the team's official website.
"When I was a kid, I always dreamed about racing for Williams, Ferrari or McLaren and I'm glad to be signing with another icon of the sport following my time at Ferrari.
"It is also nice to remember that some of the best Brazilian drivers raced for Williams and cemented a strong national link with the team."
Massa has 11 Grand Prix wins and 36 podium finishes since turning professional in 2002.