Felipe Massa has signed to Ferrari until at least the 2012 season.
Massa's contract had been due to expire at the end of this year. He has been at Ferrari since 2001.
"I am happy to be given the opportunity to drive for Ferrari for a further two seasons," said Massa.
"Throughout my entire Formula 1 career, I have always raced with an engine made in Maranello and it is a matter of pride for me to be able to continue working with a team that I regard as a second family."
Massa has competed in 69 grands prix for Ferrari, having won 11 races, 30 podiums and 15 pole positions.