Joe Flacco #5 of the Baltimore Ravens celebrates after throwing...

Joe Flacco #5 of the Baltimore Ravens celebrates after throwing a first half touchdown pass during a game at M&T Bank Stadium on Sunday, Nov. 15, 2015. Credit: Getty Images / Rob Carr

BALTIMORE — The Baltimore Ravens and Joe Flacco have agreed on a contract extension that will keep the quarterback with the team through the 2021 season.

Flacco and the Ravens agreed on a three-year extension Wednesday. If a new deal hadn’t been made, Flacco’s salary cap hit to the club would have been $28.55 million this season.

The MVP of Super Bowl XLVII was on track last season to set several club records, but torn ligaments in his left knee in Week 11 sidelined him and ended a consecutive-games streak of 122.

In 2013, Flacco signed a then-record six-year deal for $120.6 million.

Terms of the new deal were not immediately available.

More football news