An organism, especially a fungus or bacterium, that grows on and derives its nourishment from dead or decaying organic matter.