Officials in Charlotte, N.C., spent more than a year carefully considering and debating an antidiscrimination ordinance that was passed in February to promote the city’s culture of inclusiveness. State lawmakers quashed it on Wednesday by passing an appalling, unconstitutional bill that bars transgender people from using public restrooms that match their gender identity and prohibits cities from passing antidiscrimination ordinances that protect gay and transgender people.

Gov. Pat McCrory, who signed the bill into law late Wednesday, said it was necessary to undo Charlotte’s ordinance, which included protections for gay and transgender people, because it allowed “men to use women’s bathroom/locker room.” Proponents of so-called bathroom bills, which have been introduced in state legislatures across the country, have peddled them by spuriously portraying transgender women as potential rapists.

That threat exists only in the imagination of bigots. Supporters of the measures have been unable to point to a single case that justifies the need to legislate where people should be allowed to use the toilet. North Carolina is the first state to pass such a provision.