Massa started his Formula One career with Sauber before joining Scuderia Ferrari as a test driver for 2003. He returned to Sauber for 2004 and 2005 before rejoining Ferrari where he won two races in 2006 including his home Grand Prix becoming the first Brazilian since Ayrton Senna to win the Brazilian Grand Prix. Massa won three races in 2007, finishing 4th in the Drivers' Championship. He finished second in the Drivers' World Championship after a long title battle with Lewis Hamilton, winning six races to Hamilton's five. At the 2009 Hungarian Grand Prix, Massa was injured by a suspension spring off the Brawn GP car of Rubens Barrichello. Massa was forced to miss the rest of the season but returned in 2010. Massa suffered a dip in form in 2011 scoring no podiums but consistently scoring points. Massa contributed to Ferrari's Constructors' Championships in 2007 and 2008 and was under contract to race for the team until the end of the season. On 10 September 2013, he confirmed he would be leaving Ferrari at the end of the 2013 season. Massa replaced Pastor Maldonado alongside Valtteri Bottas at Williams from 2014.