The skin harbors a variety of resident leukocyte subsets that must be tightly regulated to maintain immune homeostasis. Hair follicles are unique structures in the skin that contribute to skin dendritic cell homeostasis through chemokine production. We demonstrate that CD4(+) and CD8(+) skin-resident memory T cells (TRM cells), which are responsible for long-term skin immunity, reside predominantly within the hair follicle epithelium of the unperturbed epidermis. TRM cell tropism for the epidermis and follicles is herein termed epidermotropism. Hair follicle expression of IL-15 was required for CD8(+) TRM cells, and IL-7 for CD8(+) and CD4(+) TRM cells, to exert epidermotropism. A lack of either cytokine in the skin led to impaired hapten-induced contact hypersensitivity responses. In a model of cutaneous T cell lymphoma, epidermotropic CD4(+) TRM lymphoma cell localization depended on the presence of hair follicle-derived IL-7. These findings implicate hair follicle-derived cytokines as regulators of malignant and non-malignant TRM cell tissue residence, and they suggest that the cytokines may be targeted therapeutically in inflammatory skin diseases and lymphoma.