Fungi are important as decomposers, breaking down dead organic matter and recycling nutrients back into the environment.