They are primary producers, able to do so through the photosynthetic process.
Chlorophyll is a pigment found in green plants that aids in the production of food.
Roots take in water and minerals from the soil, while leaves take in carbon dioxide gas from the atmosphere, with the help of sunlight, all of these elements are employed to create food.
As plants create their own food, they are known as autotrophs.