The primary function of the lymphatic system is to transport lymph, a fluid containing infection-fighting white blood cells, throughout the body.