Amazon is now officially accusing Donald Trump of derailing its potential deal with the Department of Defense, directing the lucrative contract to Microsoft instead. In a court filing released Monday, the company alleged that the president orchestrated “behind-the-scenes attacks” on Amazon Web Services and CEO Jeff Bezos and called for the $10 billion Joint Enterprise Defense Infrastructure contract the government awarded to Microsoft to be reviewed.

“The question is whether the President of the United States should be allowed to use the budget of DOD to pursue his own personal and political ends,” the company argued in the filing. “DoD’s substantial and pervasive errors are hard to understand and impossible to assess separate and apart from the President’s repeatedly expressed determination to, in the words of the President himself, ‘screw Amazon.’” (A Pentagon spokesperson said in a statement to CNBC that “there were no external influences on the source selection decision.”)

Trump has made no secret of his dislike for “Jeff Bozo,” as he memorably dubbed him back in January, thanks to the Amazon founder’s ownership of the Washington Post—part of the “fake news” media he so reviles. Routinely suggesting that the paper is merely a mouthpiece for Bezos himself, Trump has long sought ways to translate his Twitter barbs against Bezos into actual hits on Amazon’s bottom line. “It’s war,” one source familiar with Trump’s hatred of Bezos told my colleague Gabriel Sherman last year. “Trump is like, how can I fuck with him,” another said.

Earlier this year, he seemingly landed on an answer. Amazon was almost certainly headed toward a massive contract with the Pentagon, thanks in part to stipulations in the proposal that only Amazon appeared to be able to meet. The JEDI contract would have tasked Amazon Web Services with moving all the Defense department’s data onto the cloud—a heavy lift that would have earned the company around $10 billion. But Trump, who had previously said he’d “take a very strong look” at the bid, hit pause on the contract in August—an apparent overreach of his executive authority—after reportedly being shown a flow chart alleging a “conspiracy” by Amazon. The contract was awarded to Microsoft in October, taking Amazon aback and intensifying suspicion that Trump used his office to improperly influence the process. “AWS is the clear leader in cloud computing,” a spokesperson for the company said in October. “He’s the commander in chief, and he hasn’t been subtle about his hostility toward Amazon,” Price Floyd, a former head of public affairs at the Pentagon who briefly consulted for Amazon, told the New York Times, suggesting that the company would be on firm ground protesting the DOD decision.

The company said last month it would do just that, and it’s now making good on that threat. In the 103-page filing, it accuses Trump of “[intervening] directly in the very final phases of the two-year procurement process” and the Pentagon of “[glossing] over wide gaps” between the services offered by AWS and Microsoft. “Basic justice requires re-evaluation of proposals and a new award decision,” Amazon argued.

More Great Stories From Vanity Fair

— Wildly incriminating emails show the White House knew Trump was extorting Ukraine

— Is Rudy Giuliani truly in trouble?

— The secret life and strange death of Quadriga cofounder, Gerald Cotten

— The hunt for Jeffrey Epstein’s alleged enabler Ghislaine Maxwell

— New polling suggests Democrats’ impeachment push could alienate key voters

— From the Archive: Inside Jeffrey Wigand’s epic multibillion-dollar struggle

Looking for more? Sign up for our daily Hive newsletter and never miss a story.