Water is split apart through a process called photolysis
H2O--->1/2O2+2H+ +2e-
a.The electrons enter the electron transport chain they pass through different molecules that are reduced and then oxidized and end up in NADPH
b.The hydrogen ions build up in the thylakoid and end up passing through the ATP-synthase for this reaction to occur(ADP+H3PO4-->ATP+H2O)
c.The oxygen atom binds with another oxygen atom to form an oxygen molecule and is released in the atmosphere.