Gas necessary for photosynthesis?

Carbon Dioxide.

It bis needed to get carbon.Oxygen is released during photosynthesis