Autotrophic organisms are able to produce their own food using inorganic substances. This process usually involves the conversion of carbon dioxide and water into organic compounds, such as glucose, using light energy (photosynthesis) or chemical energy (chemosynthesis).
Photosynthesis is the process by which green plants, algae, and some bacteria convert light energy into chemical energy in the form of glucose. This process occurs in the chloroplasts of plant cells and involves two main stages: the light-dependent reactions and the light-independent reactions (Calvin cycle).
Chemosynthesis is a process used by certain bacteria and archaea to generate energy from the oxidation of inorganic chemicals, such as hydrogen sulfide or methane. Unlike photosynthesis, chemosynthesis does not require light as a source of energy.