Some bacteria are autotrophs, which produce their own food from the environment around them, as well as the use of the sun's energy. Other bacteria are heterotrophs, which are unable to make their own food, so they eat autotrophs and other heterotrophs.