Fungi are a diverse group of organisms that play important roles in ecosystems. They range from unicellular yeasts to complex multicellular mushrooms. Fungi reproduce both sexually, through spores formed via meiosis, and asexually, through mitotic spores or budding. Their cell walls contain chitin and they absorb nutrients from dead or living organic matter. Major groups of fungi include the Chytridiomycota, Zygomycota, Ascomycota, and Basidiomycota.