process involves sporogenous cells (sporocytes, also called spore mother cells) undergoing cell division to give rise to spores. In meiotic sporogenesis, a diploid spore mother cell within the sporangium undergoes meiosis, producing a tetrad of haploid spores. In organisms that are heterosporous, two types of spores occur: Microsporangia produce male microspores, and megasporangia produce female megaspores. In megasporogenesis, often three of the four spores degenerate after meiosis, whereas in microsporogenesis all four microspores survive. In gymnosperms, such as conifers, microspores are produced through meiosis from microsporocytes in microstrobili or male cones. In flowering plants, microspores are produced in the anthers of flowers. Each anther contains four pollen sacs, which contain the microsporocytes. After meiosis, each microspore undergoes mitotic cell division, giving rise to multicellular pollen grains (six nuclei in gymnosperms, three nuclei in flowering plants). Megasporogenesis occurs in megastrobili in conifers (for example a pine cone) and inside the ovule in the flowers of flowering plants. A megasporocyte inside a megasporangium or ovule undergoes meiosis, producing four megaspores. Only one is a functional megaspore whereas the others stay dysfunctional or degenerate. The megaspore undergoes several mitotic divisions to develop into a female gametophyte (for example the seven-cell/eight-nuclei embryo sac in flowering plants). Mitospore formation Some fungi and algae produce mitospores through mitotic cell division within a sporangium. In fungi, such mitospores are referred to as conidia. Formation of dormant spores Some algae, and fungi form resting spores made to survive unfavorable conditions. Typically, changes in the environment from favorable to unfavorable growing conditions will trigger a switch from asexual reproduction to sexual reproduction in these organisms. The resulting spores are protected through the formation of a thick cell wall and can withstand harsh conditions such as drought or extreme temperatures. Examples are chlamydospores, teliospores, zygospores, and myxospores. Similar survival structures produced in some bacteria are known as endospores. Chlamydospore and teliospore formation Chlamydospores are generally multicellular, asexual structures. Teliospores are a form of chlamydospore produced through the fusion of cells or hyphae where the nuclei of the fused cells stay separate. These nuclei undergo karyogamy and meiosis upon germination of the spore. Zygospore, oospore and auxospore formation Zygospores are formed in certain fungi (zygomycota, for example Rhizopus) and some algae (for example Chlamydomonas). The zygospore forms through the isogamic fusion of two cells (motile single cells in Chlamydomonas) or sexual conjugation between two hyphae (in zygomycota). Plasmogamy is followed by