Bacteria play many beneficial roles such as decomposing dead organisms to prevent their buildup, providing an essential food source, and making soil fertile for plant growth. They also aid in digestion, are used to produce foods and medicines, and help treat sewage and environmental oil spills by breaking down pollutants.