A process by which green plants use energy from the sun to make food out of water and carbon dioxide. This process produces oxygen.