The middle layer of the skin that provides structural support and contains hair follicles, sweat glands, and blood vessels.