The invention provides the use of an effective amount of a non-oxidizing water-soluble biocide in the improvement of sludge quality by reducing the sludge tendency towards bulking, wherein the biocide comprises an alkyl-substituted phosphonium compound, an alkyl-substituted phosphine, an alkyl-substituted phosphine condensate, or a polymeric quaternary ammonium compound.