They do this through a process called photosynthesis, where they use sunlight, carbon dioxide, and water to create their own food (glucose) and release oxygen as a byproduct.
Examples of autotrophs include:
* Plants
* Algae
* Cyanobacteria