Sporulation is the formation of spores from vegetative cells during a period of environmental stress. Spores are metabolically inactive and can endure extreme conditions such as heat, desiccation, and radiation. They germinate into vegetative cells when conditions become favorable again.