Spores are units of asexual reproduction. They are produced for reproduction by nonflowering plants, bacteria, fungi, and algae, and are able to travel long distances. Some bacteria also produce spores as a way to survive very harsh conditions. Mosses, ferns, and related plants do not produce flowers but reproduce by means of spores.