<span>In particular, their three membranes divide chloroplasts into three distinct internal compartments: (1) the intermembrane space between the </span>two membranes<span> of the chloroplast envelope; (2) the stroma, which lies inside the envelope but outside the thylakoid membrane; and (3) the thylakoid lumen.</span>