The primary function of a turnbuckle is to provide a means of tightening or loosening the tension in a system by adjusting the length of the connected components. This is achieved by rotating the central threaded section of the turnbuckle, which simultaneously moves the two end fittings closer together or farther apart.