Acetylcysteine works primarily by replenishing glutathione levels in the liver. Glutathione is a crucial antioxidant that helps detoxify harmful substances. In cases of acetaminophen toxicity, acetylcysteine helps to neutralize the toxic metabolite N-acetyl-p-benzoquinone imine (NAPQI), preventing liver damage.