The multistate lawsuit seeking to block T-Mobile (TMUS -0.06%) from merging with Sprint (S) is currently underway. The case is the final hurdle that the two companies need to clear in order to close the $26 billion merger that will reshape the domestic wireless industry if allowed to move forward. DISH Network (DISH) is playing a critical role in the deal, agreeing to purchase spectrum and prepaid segments as part of a package of concessions that T-Mobile and Sprint have agreed to in order to appease antitrust regulators.

It turns out that T-Mobile and DISH nearly combined years ago.

John Legere and Marcelo Claure sitting behind a table and laughing

Image source: T-Mobile.

A trip down memory lane

Testifying at the trial, T-Mobile CEO John Legere disclosed that the two companies were close to inking a merger deal back in 2015, according to CNET. That was four years after AT&T failed in its efforts to acquire T-Mobile in 2011 for $39 billion, which entailed paying T-Mobile a $3 billion breakup fee and valuable spectrum licenses after the deal fell through. The CEO also acknowledged how important AT&T's consolation prize was in enabling T-Mobile's turnaround, according to the report.

Legere would take over as T-Mobile CEO in 2012 and proceed to architect the company's "Un-carrier" turnaround strategy. Just two weeks after naming Legere as chief executive, T-Mobile announced it would acquire MetroPCS -- using half the cash it had just received from AT&T to fund the cash component of that deal.

Back then, T-Mobile was in dire shape: It was bleeding subscribers, had an inferior spectrum portfolio, and trailed its three larger competitors by a considerable margin. Legere has long criticized DISH for hoarding spectrum and not using it, testifying that he thought that by combining with DISH in 2015 that T-Mobile could leverage those airwaves. Such a merger could have also given T-Mobile an opportunity to disrupt the satellite TV industry.

Legere and DISH co-founder Charlie Ergen weren't able to settle on a price, so the negotiations fell apart. Ergen reportedly believed T-Mobile's business would continue deteriorating and was pushing for more favorable terms. T-Mobile shares were trading around $25 at the time, and the stock has tripled in the years since.

TMUS Chart

TMUS data by YCharts.

Confidence in DISH

Legere has a combative reputation and has never been afraid of taking jabs at rivals, including this tweet from earlier this year.

With the Sprint merger now hinging in part on DISH becoming a fourth carrier to preserve competition, T-Mobile has changed its tune. At a Goldman Sachs tech conference in September, COO and incoming CEO Mike Sievert expressed confidence in DISH.

"Look, DISH is going to come in," Sievert said. "They're going to be a viable competitor."