Wastewater odors are commonly caused by hydrogen sulfide (H2S), mercaptans, ammonia, and other gases produced when wastewater becomes anaerobic.