Cysteine catabolism presents cells with a double-edged sword. On the one hand, cysteine degradation provides cells with essential molecules such as taurine and sulfide. The formation of sulfide in cells is thought to regulate important and diverse physiological processes including blood circulation, synaptic activity and inflammation. On the other hand, the catabolism of cysteine by gut microbiota can release high levels of sulfide that may underlie the development or relapse of ulcerative colitis, an inflammatory bowel disease affecting millions of people worldwide. Here, we have used the nematode C. elegans to explore how cells tolerate high levels of sulfide produced by cysteine degradation in bacteria. We have identified mutations in genes coding for thioredoxin family proteins, mitochondrial proteins, and collagens that confer tolerance to sulfide toxicity. Exposure to sulfide induces the unfolded protein response in the endoplasmic reticulum and mitochondria. Moreover, our results suggest that sulfide toxicity is mediated by reactive oxygen species (ROS). Indeed, pre-treatment of worms with antioxidants increases their tolerance to sulfide toxicity. Intriguingly, sub-toxic levels of the superoxide generator paraquat can also increase the tolerance of worms to sulfide. Therefore, it appears that activation of ROS detoxification pathway prior to the exposure to sulfide, can increase the tolerance to sulfide toxicity. Our results suggest that these detoxification pathways are mediated by the hypoxia inducible factor HIF-1. Finally, we show that sulfide resistance varies among wild C. elegans and other nematode species, suggesting that tolerance to sulfide was naturally selected in certain habitats.