Why Does My Fish Tank Smell Like Rotten Eggs?

Title card: Why does my tank smell like rotten eggs? over a planted aquarium with white sand and rocks

It can be hydrogen sulfide (H₂S), a gas that Aquatic Arts says may form where organic material decomposes with little oxygen: in deeper substrate, or under wood and rocks. Other sources also blame dead fish, sulfur-scented conditioners and well water.