Acids and bases affect the environment by altering habitats so that they are more favorable to some organisms than others. Acids and bases naturally occur in the environment, and organisms have adapted to the pH of their local habitat over evolutionary time. If the pH of a habitat changes, some organisms may thrive, others may fail, and others simply flee the habitat