Joe Flacco

The Baltimore Ravens have inked a deal with quarterback Joe Flacco, making him one the highest-paid players in NFL history.

According to ESPN, Flacco has signed a three-year extension worth $66.4 million and includes an NFL record $40 million signing bonus. In all, he’ll get $44 million in guaranteed money — the $40 million signing bonus, plus a $4 million base salary in Year 1.

The deal will keep the franchise quarterback under contract through 2021.

“I just spent about five days with GMs [at the NFL combine] that are looking for a Joe Flacco,” said Ravens general manager Ozzie Newsome. “They’re not sleeping at night. I can tell you that. Joe is our quarterback and I’m proud to say that.”

Flacco says money wasn’t a motivating factor for the deal. “Once this thing is signed and over with it, [winning] is all that we’re worried about,” he said. “This gives us the best chance to move forward over the next five, six years. It’s a huge window to go win another Super Bowl.”

The 31-year-old led the Ravens to victory at Super Bowl XLVII in 2012, and has earned 85 wins (including the playoffs) since entering the league in 2008, which ranks fourth among starting quarterbacks.

Flacco is also the Ravens’ all-time leading passer in yards (28,322), touchdown passes (162), completions (2,479) and attempts (4,070).