Hydrogen sulfide is the chemical compound with the formula H2S. It is a colorless chalcogen hydride gas with the characteristic foul odor of rotten eggs. It is poisonous, corrosive, and flammable.