Trump's lawsuit over Twitter ban dismissed by federal judge

US District Court Judge James Donato granted Twitter's motion to dismiss the lawsuit

A federal judge in San Francisco has dismissed a lawsuit from former President Trump against Twitter, challenging the social media company for banning himself and others from the platform.

U.S. District Court Judge James Donato granted Twitter's motion to dismiss the lawsuit on Friday.

ELON MUSK DENIES TRUTH SOCIAL CEO CLAIM THAT TRUMP TOLD HIM TO BUY TWITTER

Trump

President Donald Trump speaks at the White House, Thursday, Nov. 5, 2020, in Washington. (AP Photo/Evan Vucci) (AP Photo/Evan Vucci / AP Newsroom)

Danto is allowing lawyers for Trump to file an amended complaint that is "consistent with this order" by May 27, and added that it cannot contain any new claims or defendants without prior permission from the court.

The lawsuit alleged that Twitter violated the First Amendment of the United States Constitution, claimed that Section 230 of the Communications Decency Act is unconstitutional, and also alleged that Twitter used "deceptive and misleading practices" that are in violation of the Florida Deceptive and Unfair Trade Practices Act.

Donato wrote in his order that the First Amendment doesn't apply to private companies, adding that Trump is "not starting from a position of strength."

Trump

President Donald Trump speaks at the White House (AP Photo/Evan Vucci, File / AP Newsroom)

Twitter banned Trump in January 2021 and alleged that he contributed to the violence that took place at the Capitol on Jan. 6.

GET FOX BUSINESS ON THE GO BY CLICKING HERE

The lawsuit was originally filed in the United States District Court for the Southern District of Florida before being transferred.

Fox News' Tyler Olson contributed to this report.