# What is the mechanism of photosynthesis?

I just want to know what particle in plants can change $\ce{H2O}$ into $\ce{O2}$ and what $\ce{CO2}$ does in this conversion system. What if we just use $\ce{H2O}$ and light to convert it into $\ce{O2}$? If light is what we need to convert $\ce{CO2}$ into glucose and $\ce{H2O}$ into oxygen, why can't scientists make a machine to do that?