The function of the xylem is to transport water and dissolved minerals from the roots of a plant to its stems and leaves. Xylem tissues are responsible for the upward movement of water through a process called transpiration, which creates a negative pressure that pulls water up through the plant. Additionally, xylem provides structural support due to the lignin present in its cell walls, enabling plants to maintain their shape and stand upright.