Chemical endangerment is the crime of exposing a child to a controlled substance or an environment in which it is produced. It was added to the Alabama legal code in 2006, with the intention of protecting children from methamphetamine laboratories. Since then, it has been used to prosecute women who give birth to children that test positive for harmful drugs and also THC, the active ingredient in marijuana.