Primary functions of a leaf are photosynthesis and gas exchange. It consists of stomata, which opens, closes, and regulates carbon dioxide, oxygen and water vapour exchange with the atmosphere. The primary function of vascular tissues – phloem and xylem – is conduction of food and water, respectively.