Mesophyll cells within leaves contain chloroplasts, in which thylakoid membranes are stacked.