They accomplish this by growing through and within the substrate on which they are feeding. Numerous hyphae network through the wood, cheese, soil, or flesh from which they are growing. The hyphae secrete digestive enzymes which break down the substrate, making it easier for the fungus to absorb the nutrients which the substrate contains. While this makes diffusion of nutrients into the hyphae easier, it also makes the fungus susceptible to dessication and ion imbalance. But usually this is not a problem, since the fungus is growing within a moist substrate.
Most fungi are saprophytes , feeding on dead or decaying material.
This helps to remove leaf litter and other debris that would otherwise accumulate on the ground. Nutrients absorbed by the fungus then become available for other organisms which may eat fungi. A very few fungi actively capture prey, such as Arthrobotrys which snares nematodes on which it feeds. Many fungi are parastitic , feeding on living organisms without killing them. Ergot, corn smut, Dutch elm disease, and ringworm are all diseases caused by parasitic fungi.