A judge in San Francisco tossed out Donald Trump's lawsuit against him.

The judge said that Trump didn't show that he had violated his free speech rights. The judge wrote that free speech rights don't apply to private companies and that Trump didn't show that he was working for Democrats.

The amended complaint only offers a grab-bag of allegations to the effect that some Democratic members of Congress wanted Mr. Trump to be banned from social media because of his views.

The lawsuit was filed in July of 2021.

The platforms suspended Trump after the January 6, 2021, insurrection in which his followers violently storming the Capitol building in an attempt to block Congress from certifying Joe Biden's presidential win. The companies were concerned that he would cause more violence.

The ruling comes as Musk is in the process of purchasing the social network. The deal has raised questions about whether Musk would bring back the former president.

Trump has started his own social network, Truth Social, which is a lie. He said last week that he wouldn't return to the micro-messaging service.

The suit sought to have Trump's account and those of five other people restored. The group had sought damages and class action status on behalf of others who had been removed from the platform.

Legal experts had predicted the lawsuit would fail and that Trump would use it to his advantage. After the lawsuit was announced last year, Trump's political action committee began raising money.

Section 230 of the 1996 Communications Decency Act was the subject of a lawsuit.

According to the act, providers can moderate services by removing obscene posts that violate their standards and not be held responsible for the content posted by others.

Trump only showed a vague and speculative allegation that he would not have been banned if he had been granted immunity by Section 230.

Trump had another chance to amend his complaint. The lawyer for Trump did not respond to the request for comment.