Xylem cells transport water and minerals from the roots, while phloem cells transport food from the leaves to other parts of the plant.