Who is the only party who has a contractual relationship with subcontractors and their employees?

Who is the only party who has a contractual relationship with subcontractors and their employees?