The law would allow residents to sue Facebook, Twitter or YouTube if they feel they were unfairly banned.
Texas Gov. Greg Abbott on Thursday signed a bill that prohibits large social media companies from banning users or blocking content based on their political viewpoints.
The law targets companies with at least 50 million monthly users in the US, including Facebook , Twitter and Google's YouTube . The legislation, billed by the governor's office as protecting Texans "from wrongful censorship on social media platforms," would allow residents of the state to sue companies for reinstatement of accounts.
"There is a dangerous movement by some social media companies to silence conservative ideas and values," Abbott, a Republican, said in a video posted to Facebook. "This is wrong and we will not allow it in Texas."
The new law comes amid rising pressure from several Republican lawmakers who alleged that Twitter, Facebook and other social networks harbor anti-conservative bias. The social networks have denied those charges.
In June, a federal judge blocked a Florida law from taking effect that would have allowed the state to punish social media companies for banning politicians or political candidates from their platforms. The judge in that case found the law's prohibition on "deplatforming" may violate companies' free speech rights and that the legislation on the whole is "viewpoint-based."
The Florida bill, signed by Republican Gov. Ron DeSantis, was proposed after the high-profile banning earlier this year of President Donald Trump from Twitter and Facebook for violating their policies after the deadly Jan. 6 riot on Capitol Hill.
NetChoice, an internet industry group that sued to challenge the Florida bill, criticized the Texas law as unconstitutional for containing the same conflict with the First Amendment as the Florida bill.
"This bill abandons conservative values, violates the First Amendment and forces websites to host obscene, antisemitic, racist, hateful, and otherwise awful content," NetChoice President Steve DelBianco said in a statement. "Moderation of user posts is crucial to keeping the internet safe for Texas families, but this bill would put the Texas government in charge of content policies."
Facebook and Twitter declined to comment, while Google didn't respond to a request for comment.