The xylem is the tube-shaped, nonliving portion of the vascular system in plants. Its purpose is to carry water and minerals from the roots to the rest of the plant.