One way bacteria are important to the Earth and its ecosystems is that

Abacteria concentrate valuable minerals.
Bbacteria decompose dead organisms.
Cbacteria produce acetone.
Dbacteria use oxygen.