The endodermis acts as a selective barrier, ensuring that only certain substances pass through to the vascular tissues. This layer contains the Casparian strip, a band of suberin that blocks the passive flow of substances, forcing them to pass through the endodermal cells.