Chemolithotrophs near hydrothermal vents support a variety of other life-forms

Chemolithotrophs near hydrothermal vents support a variety of other life-forms there. Explain how their role is analogous to that of photosynthetic organisms in terrestrial environments.