The Calvin cycle creates glucose from carbon dioxide. In order to do so, it needs a source of (provided by NADPH) and in order to create new covalent bonds (provided by $\overline{\text { ATP). Both NADPH and ATP are provided by the }}$ occurring on the thylakoid membranes.