Bacteria and fungi are decomposers. They eat decaying matter - dead plants and animals and in the process they break them down and decompose them When that happens, they release nutrients and mineral salts back into the soil - which then will be used by plants!
It fits at the end of the food web, right before the producers. Decomposers but if you look at a food chian it would be to the side