This article presents a research study on carbonate formation in solid and liquid media by Thalassospira sp., Halomonas sp., Bacillus pumilus, and Pseudomonas grimontii, four bacterial strains isolated from sediments and deep seawater. As part of this study, we analyzed carbonic anhydrase activity, pH, adsorption of calcium and magnesium ions, and total organic and inorganic carbon. The geochemical program PHREEQC was also used to calculate the mineral saturation indexes in all the cultures. The minerals formed were studied with X-ray diffraction, X-ray dispersive energy microanalysis, and scanning electron microscopy. In addition, all four bacterial strains were found to induce carbonate precipitation and to have carbonic anhydrase activity. Sterile control experiments did not precipitate carbonate. In solid M1 and B4 media, all of the strains precipitated magnesium calcite, whereas in the liquid media, they precipitated different percentages of magnesium calcite, aragonite, and monohydrocalcite. In both cases, small amounts of amorphous precipitates were also produced. This article discusses carbonate formation and the possible role played by metabolic activity, bacterial surfaces and carbonic anhydrase in this process. Finally, the results obtained lead to a hypothesis regarding the importance of carbonate precipitation for the survival of bacteria populations in certain habitats.