Sebastian Vettel has signed a new contract to stay with Ferrari until the end of 2020.
The four-time champion has been at the team since 2015 and has helped build them up to be title contenders this year after a difficult few seasons.
Vettel is leading the championship by 14 points from Mercedes driver Lewis Hamilton with nine races remaining.
The move ends speculation that the 30-year-old could be considering a move to Mercedes in the near future.
A statement from Ferrari said the team had “extended its technical and racing agreement” with Vettel “for the 2018, 2019 and 2020 racing seasons of the F1 world championship”.