Many Firmicutes produce endospores, which are resistant to desiccation and can survive extreme conditions. They are found in various environments, and the group includes some notable pathogens. Those in one family, the heliobacteria, produce energy through photosynthesis. Firmicutes play an important role in beer, wine, and cider spoilage.