Who is liable if a subcontractor is not insured?

When embarking on a construction project, the question of liability is paramount, especially when involving subcontractors. A critical consideration is the insurance status of these subcontractors. Who, then, is liable if a subcontractor is not insured? This question...