Joe Flacco won't be leaving Baltimore any time soon.

The Ravens announced Wednesday that they have signed Flacco to a three-year contract extension through the 2021 season.

Terms of the deal were not disclosed, but ESPN's Adam Caplan reports that it's worth $66.4 million with $44 million fully guaranteed - $40 million in the form of a signing bonus and a $4-million base salary in the first year. Flacco had the third-highest cap number in the NFL for 2016 at $28.55 million, which figures to drop under the new deal.

The eighth overall pick of the 2008 draft owns a career record of 75-47 and has guided the Ravens to the playoffs in all but two of his eight seasons.