Stormy Daniels is taking President Trump to court.

The porn star sued President Trump Tuesday, claiming he never signed the non-disclosure agreement that keeps her from gabbing about their reported year-long affair.

Daniels, whose real name is Stephanie Clifford, wants the court to lift the gag-order regarding her “intimate” relationship with Trump, claiming the legal document invalid because only she and Trump's personal lawyer Michael Cohen signed it.

Cohen and White House aides did not return repeated requests for comment.

If successful, Daniels would be free to tell everything about her alleged tryst with the leader of the free world.

The “hush agreement,” as Daniels calls it, which is attached to the suit, uses pseudonyms for her and Trump.

Daniels is referred to as “Peggy Peterson” throughout and Trump as “David Dennison.” On the final page, there's a blank space where “DD” was supposed to sign. A separate letter reveals the true identities of “PP” and “DD” as Daniels and Trump.

The pair began sleeping together in the summer of 2006 — a few weeks after First Lady Melania Trump gave birth to their son, Barron, Daniels claims in court papers.

The affair continued well into 2007 and included flings in Lake Tahoe and at the Beverly Hills Hotel, according to the suit.

Trump never signed the agreement, according to Daniels.

(Olivier Douliery/TNS)

Daniels planned to speak publicly about the affair in the fall of 2016 after the release of an infamous hot mic recording that caught Trump bragging about being able to “grab” women “by the p---y” because he's a “star.”

“After discovering Ms. Clifford's plans, Mr. Trump, with the assistance of his attorney, Mr. Cohen, aggressively sought to silence Ms. Clifford as part of an effort to avoid her telling the truth, thus helping to ensure he won the Presidential Election,” the suit states.