The midrib is the primary central vein of a leaf. It contains the vascular bundles, which are composed of xylem and phloem tissues. The xylem transports water and minerals from the roots to the leaf, while the phloem transports food (sugars) produced during photosynthesis to other parts of the plant.