Compositions and methods for inhibiting sulfide biogeneration from biofilms are described, as well as methods for preparing the compositions. The compositions comprise anthrahydroquinone and a biocide. The compositions may also include anthraquinone.