All mushrooms are fungi, but not all fungi are mushrooms. For those fungi that produce them, the mushroom plays a similar role to a flower or a fruit in plants. Some part of each mature mushroom produces microscopic spores that are similar to pollen or seeds, sometimes numbering in the trillions. The rest of the fungal organism typically lives in the soil, wood, or some other material and is composed of thread-like strands known as mycelium. An individual mycelium can grow quite large, with at least one well-documented case covering more than 1,500 acres in Oregon.
Source: Encyclopedia of Life