What does Bacteria Need to Live?

In order to live bacteria need food, need to be able to break down the food and to be able to protect themselves. Some bacteria need sun to get their energy while other need food.