Chloroplast membrane
Chloroplasts contain several important membranes, vital for their function. Like mitochondria, chloroplasts have a double-membrane envelope, called the chloroplast envelope. Each membrane is a phospholipid bilayer, between 6 and 8 nm thick, and the two are separated by a gap of 10-20 nm, called the intermembrane space. The outer membrane is permeable to most ions and metabolites, but the inner membrane is highly specialised with transport proteins. Carbohydrates are transported across the outer membrane by a triose phosphate translocator. One or two additional membranes may enclose chloroplasts in algae.
The origin of chloroplasts is now largely accepted by the botany community as occurring via endosymbiosis on an ancestral basis with the engulfment of photosynthetic bacterium within the eukaryotic cell. Over millions of years the endosymbiotic cyanobacterium evolved structurally and functionally, retaining its own DNA and the ability to divide by binary fission (not mitotically) but giving up its autonomy by the transfer of some of its genes to the nuclear genome.
Internal parts
Within the inner membrane, in the region called the stroma, there is a system of interconnecting flattened membrane compartments, called the thylakoids. These are the sites of light absorption and ATP synthesis, and contain many proteins, including those involved in the electron transport chain. Photosenthetics pigments such as chlorophylls a,b and c some others e.g. xanthophylls, carotenoids, phycobilins are also embedded within the granum membrane. With exception of chlorophyll a, all the other associated pigments are "accessory" and transfer energy to the reaction centers, Photosytems I and II. Photosynthesis takes place primarily in plant leaves, and little to none occurs in stems, etc. The parts of a typical leaf include the upper and lower epidermis, the mesophyll, the vascular bundle(s) (veins), and the stomates. The upper and lower epidermal cells do not have chloroplasts, thus photosynthesis does not occur there. They serve primarily as protection for the rest of the leaf. The stomates are holes which occur primarily in the lower epidermis and are for air exchange: they let CO2 in and O2 out. The vascular bundles or veins in a leaf are part of the plant's transportation system, moving water and nutrients around the plant as needed. The mesophyll cells have chloroplasts and this is where photosynthesis occurs.
The energy harvested via the light reaction is stored by forming a chemical called ATP (adenosine triphosphate), a compound used by cells for energy storage. This chemical is made of the nucleotide adenine bonded to a ribose sugar, and that is bonded to three phosphate groups. This molecule is very similar to the building blocks for our DNA.
Functions of thylakoids
The membranes of the thylakoid contain photosystems I and II which harvest solar energy to excite electrons which travel down the electron transport chain. This exergonic fall in potential energy along the way is used to draw (not pump!) H+ ions from the lumen of the thylakoid into the cytosol of a cyanobacterium or the stroma of a chloroplast. A steep H+ gradient is formed, which allows chemiosmosis to occur, where the thylakoid, transmenbrane ATP-synthase serves a dual function as a "gate" or channel for H+ ions and a catalytic site for the formation of ATP from ADP + a P0-4 ion.
Experiments have shown that the pH within the stroma is about 7.8, while that of the lumen of the thylakoid is 5. This corresponds to a six-hundredfold difference in concentration of H+ ions. The H+ ions pass down through the ATP-synthase catalytic gate. This chemiosmotic phenomenon occurs in mitochondria.