The study of the ways in which microorganisms interact with the Earth's environment through biochemical processes.