The rock cycle is a basic concept in geology that describes the time-consuming transitions through geologic time among the three main rock types: sedimentary, metamorphic, and igneous. Each of the types of rocks is altered or destroyed when it is forced out of its equilibrium conditions.
Light, carbon dioxide, and water are the materials necessary for photosynthesis. Glucose (sugar), water, and oxygen are produced.