Various roles played by decomposers in the ecosystem are:
They decompose biodegradable substances into useful substances.
They release nutrients into soil by decomposing dead and decaying matter, thus making the soil fertile.
They maintain the nutrient pool by returning back the nutrients in the pool.