What does a leaf absorb and release so photosynthesis can take place?

I’m not sure if it’s oxygen or not.