This article needs additional citations for verification. (December 2009) (Learn how and when to remove this template message)
Some are known to live in surface rocks, and make use of photosynthesis for energy.
Those that live in deeper rocks cannot use photosynthesis to gather energy, but instead extract energy from minerals around them. They live in cracks in the rock where water seeps down. The water contains dissolved carbon dioxide (CO2) which the organisms use for their carbon needs. They have been detected in rocks down to depths of nearly three km, where the temperature is approximately 75 °C.