The bill was the state's response to a non-discrimination ordinance pushed through by the Charlotte City Council in early 2016 which required businesses to allow people to use the bathroom corresponding to their gender identity.