Felipe Massa has signed a new one-year deal with Ferrari, the Italian team have confirmed.
The Brazilian's future at Ferrari has been the subject of great speculation throughout the season, with a poor start to the campaign appearing as if it may cost him his seat.
However, a resurgence that has seen him finish in the top five in four of the last five races - including a second place finish in Japan - appears to have been enough to secure his spot with the Maranello outfit.
"Scuderia Ferrari announces it has renewed its contract with the driver Felipe Massa to the end of the 2013 race season," the team said in a statement.
"The Scuderia's driver line-up for next year is therefore made up of Fernando Alonso and the aforementioned Felipe Massa."
Massa admitted his delight at signing the deal and committed himself to the cause.
"Ferrari is my sports family. First, I want to thank President Montezemolo and (team principal) Stefano Domenicali, who gave me confidence which I have always maintained, even in the most difficult moments," said the 31-year-old.
"Both the team and the fans can be assured I will do all that is in my power to help the Scuderia to achieve the goals that arise every year."