The role of a decomposer is to decompose or break down dead matter in the environment. Plants make their own food by the process of photosynthesis and also produce (hence the name) food for other consumers. Without producers an ecosystem could not sustain itself.