the protective casing of the root of a hair. Inside the follicle, the end of the hair shaft is surrounded by a flower-spray ending, one of the basic types of somatosensory receptors. As part of defense behavior, a follicular nerve ending stimulates muscle fibers that contract and cause piloerection.