Aquatic plants also generate oxygen, but they use carbon dioxide from water. The process of oxygen generation is called photosynthesis. During photosynthesis, plants and other producers transfer carbon dioxide and water into complex carbohydrates, such as glucose, under the influence of sunlight.