The process used by plants to convert energy from the sun into chemical energy that supports the plants.