One of the layers of a hair follicle derived from the epidermis. It includes the outer root sheath, which is a continuation of the stratum germinativum, and the inner root sheath, which consists of three layers of cells that closely invest the root of the hair.