Oxygen cycles through the biosphere, atmosphere, hydrosphere, and lithosphere. Plants produce oxygen through photosynthesis, using carbon dioxide, water and sunlight to produce sugars and release oxygen into the atmosphere. Animals and other organisms use oxygen for respiration, breaking down sugars and food and releasing carbon dioxide and water. The carbon dioxide is then used by plants in photosynthesis, continuing the cycle.