The endodermis is a specialized layer of cells in plant roots that serves as a selective barrier, regulating the flow of water and nutrients. It is typically located between the cortex and the vascular tissues, playing a crucial role in maintaining the plant's internal environment.