Environmental parameters, and not phylogeny, determine the composition of extracellular polymeric substances in microbial mats from extreme environments.