Quick Answer. Plants produce oxygen as a byproduct of photosynthesis, the process that plants and other organisms use to create usable energy. Photosynthesis consists of carbon dioxide and water reacting in the presence of energy from sunlight, which produces glucose and oxygen.