Hall of Famer Troy Aikman is expected to leave Fox Sports to become the main analyst for ESPN’s “Monday Night Football,” The Post has learned.

Aikman’s ESPN deal will be for five years, according to sources, and his yearly salary is expected to approach or exceed the neighborhood of Tony Romo’s $17.5 million per year contract with CBS. The deal is not yet signed, but it is near completion.

ESPN declined comment.

Aikman’s seismic move will shake-up NFL TV free agency. Already this offseason, the contract of Al Michaels, arguably the greatest NFL play-by-player of all time, ran out with NBC.

Michaels, 77, has been on the 1-yard line in his negotiations to be the lead play-by-play voice when Amazon Prime Video begins its exclusive coverage of “Thursday Night Football.” Michaels had hoped Aikman would join him on Thursday nights.