The primary function of ball bearings is to reduce friction by facilitating rolling motion instead of sliding motion between contacting surfaces.