Photosynthesis is the process by which plants, algae, and some bacteria use sunlight, carbon dioxide, and water to produce oxygen and energy in the form of glucose. It occurs in the chloroplasts of plant cells, where chlorophyll absorbs sunlight and uses it to convert carbon dioxide and water into oxygen and glucose. This process provides nutrients and oxygen for other organisms while storing energy in organic molecules.