Autotrophs obtain energy and nutrients by harnessing sunlight through photosynthesis (photoautotrophs) or, more rarely, obtain chemical energy through oxidation (chemoautotrophs) to make organic substances from inorganic ones.