Oxygen is a byproduct of light-dependent reactions. The splitting of water molecules (photolysis) occurs in PSII, which releases oxygen, protons, and electrons. The oxygen is then expelled as a waste product, which is crucial for maintaining atmospheric oxygen levels.