Fungi join bacteria as the primary decomposers in different ecosystems. They feed on the organic remains of dead plants. They release special enzymes that break down lignin, a structurally complex substance in wood. Decomposing organic matter is considered by ecologists as the major ecological role of fungi.