The primary function of decomposers in an ecosystem is:
D. Decomposers break down matter from dead organisms into simpler substances that can be recycled in ecosystems.
Decomposers play a crucial role in nutrient cycling by breaking down organic matter, which helps to return essential nutrients to the soil and makes them available for use by plants and other organisms.