A cortex is the outermost layer of a stem or root in a plant, or the surface layer or “skin” of the nonfruiting part of the body of some lichens. In botany, the cortex is the outermost layer of the stem or root of a plant, bounded on the outside by the epidermis and on the inside by the endodermis.