CBS made sure they didn't lose their man.

On Friday, the media giant gave NFL analyst Tony Romo a mega extension that will pay him about $17 million annually, according to a report from Andrew Marchand of the New York Post.

Marchand's report says the deal is worth more than $100 million, and sources the deal is longer than five years. This is the the most lucrative deal ever for a sports analyst, according to Marchand.

Pro Football Hall of Fame head coach John Madden was previously the highest-paid NFL analyst ever, earning $8 million annually.

Earlier this week, Marchand reported that ESPN was going to be CBS' "main competition" for Romo, whose three-year deal expired after the 2019 season. The former Dallas Cowboys quarterback joined the CBS broadcast booth in 2017, shortly after retiring from football.

Romo replaced Phil Simms (who was moved to The NFL Today) and was paired with Jim Nantz, the lead play-by-play voice for CBS. The duo called Super Bowl LII between the Los Angeles Rams and the New England Patriots in Atlanta. They'll also call Super Bowl LV in Tampa Bay next year, having switched the broadcast rotation around with NBC.

Related: Patriots Are Betting Favorites To Get Tom Brady Amid Departure Rumors

According to Spotrac.com, the former Pro Bowler made just over $127.422 million in his career, which spanned from 2004 to 2016. After spending his first two seasons as a backup, Romo took over as the starter for Drew Bledsoe during the 2006 campaign.

Romo is widely regarded as one of the best sports analysts today. His humorous personality, detailed analysis and mastery of correctly predicting plays have made him the perfect broadcast partner for Nantz.

$17 million is obviously a lot to pay for an analyst, but CBS is paying billions annually to broadcast an NFL game. Not only that, but NFL ratings have increased over the last two years, so CBS obviously had no issue in paying historic amounts of dollars to keep their top NFL analyst.

Next: Release Date Revealed For Westworld Season 3 Along With New Trailer