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

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