Organophosphorus or organosulfur compounds and methods of using the compounds as cleaning agents, particle dispersants, or surfactants, or to remove, disperse or inhibit the growth of a biofilm, or inhibit the growth of, or kill a fungus or bacteria are provided.