A reproductive cell produced by plants (fungi, moss, ferns) and some protozoa and bacteria. Bacteria also produce spores as a defensive mechanism. Bacterial spores have thick walls, and are able to withstand varying temperatures, humidity, and other unfavorable conditions.