What is the end waste product of photosynthesis?

Oxygen gas is a waste from this process, and lucky for us that it is because it is given off through the leaves to replenish our atmosphere.

The other waste product is water, also given off through the leaves.