On Wednesday, a small town in Alabama repealed a short-lived measure that had been called the most extreme anti-transgender bathroom law in the country by LGBTQ groups.

The city of Oxford had tried to make it illegal for people to use a public bathroom that does not align with their birth certificate, punishing those who violate the law with a $500 fine and up to six months in jail.

AL.com reported that the ordinance had come in response to Target's decision to let trans employees and shoppers, who identify with a gender different from the one assigned to them at birth, use the bathroom that corresponds with their gender identity. Target has a store in Oxford.

But after facing enormous pressure from LGBTQ groups, including legal threats, three of five council members apparently decided to repeal the law, giving trans advocates a major victory in a conservative town in a very conservative state.