Autotrophism is the ability of an organism to produce its own food using inorganic compounds and an external energy source, such as sunlight (in photosynthesis) or chemicals (in chemosynthesis). Autotrophs are also known as producers in the food chain as they form the base of the ecosystem by synthesizing organic molecules that serve as food for other organisms.