Amazon claims the Pentagon failed to fairly judge its bid for a cloud contract worth up to $10 billion because President Donald Trump viewed company founder Jeffrey Bezos as his “political enemy.”

Amazon Web Services claimed in a lawsuit that was made public on Monday that the Defense Department ignored Amazon’s superior technology and awarded the contract to Microsoft despite its “key failures” to comply with requirements for the so-called Joint Enterprise Defense Infrastructure, or JEDI, contract.

The Pentagon made those errors because of improper interference by Trump, who Amazon said “launched repeated public and behind-the-scenes attacks to steer the JEDI Contract away from AWS to harm his perceived political enemy—Jeffrey P. Bezos,” who the president has long criticized for his ownership of The Washington Post, according to the lawsuit.

Amazon filed a lawsuit under seal with the court last month to formally protest its loss of the cloud contract. The Pentagon’s JEDI cloud project is designed to consolidate the department’s cloud computing infrastructure and modernize its technology systems. The contract is worth as much as $10 billion over 10 years and could offer the winner a bigger foothold in the burgeoning federal cloud market.

More must-read stories from Fortune:

—These are the jobs artificial intelligence will eliminate by 2030

—What analysts are saying about Google’s co-founders stepping down

—2020 Crystal Ball: Predictions for the economy, politics, technology, and more

—The world’s fourth-largest economy is going cashless

—The iPhone app of the year gives your camera a long exposure boost

Catch up with Data Sheet, Fortune’s daily digest on the business of tech.