A decomposer is an organism that gains needed energy by breaking down biomass expelled by other organisms as waste or leftovers from already-dead organisms.