Aims. This work aims to study the unexplained sulfur depletion observed toward dense clouds and protostars. Methods. We made simulation experiments of the UV-photoprocessing and sublimation of H 2 S and H 2 S:H 2 O ice in dense clouds and circumstellar regions, using the InterStellar Astrochemistry Chamber (ISAC), a state-of-the-art ultra-high-vacuum setup. The ice was monitored in situ by mid-infrared spectroscopy in transmittance. Temperature-programmed desorption (TPD) of the ice was performed using a quadrupole mass spectrometer (QMS) to detect the volatiles desorbing from the ice.Results. Comparing our laboratory data to infrared observations of protostars we obtained a more accurate upper limit of the abundance of H 2 S ice toward these objects. We determined the desorption temperature of H 2 S ice, which depends on the initial H 2 S:H 2 O ratio. UV-photoprocessing of H 2 S:H 2 O ice led to the formation of several species. Among them, H 2 S 2 was found to photodissociate forming S 2 and, by elongation, other species up to S 8 , which are refractory at room temperature. A large fraction of the missing sulfur in dense clouds and circumstellar regions could thus be polymeric sulfur residing in dust grains.