1. Oxygen is used for respiration and is released from plants through photosynthesis. During respiration, oxygen is used to oxidize glucose and release energy, while carbon dioxide is released into the air. 2. Photosynthesis is the process by which plants produce carbohydrates and oxygen from carbon dioxide, water, and sunlight using chlorophyll. This releases oxygen into the air. 3. Carbon dioxide in the atmosphere prevents some infrared and ultraviolet rays from escaping, helping to keep the Earth's temperature warm enough to support life.