Photosynthetic organisms, such as plants, algae, and some bacteria, derive their carbon from carbon dioxide (CO2). During photosynthesis, they use light energy to convert carbon dioxide and water into glucose and oxygen. The glucose is then used as a source of energy and carbon for the organism's growth and development, while the oxygen is released into the atmosphere.