T-cell host immune response against hepatitis C virus (HCV) has been suggested to play an important role in determining HCV infection outcome. However, data from human studies are not available. This study examined the effect of primary T-cell deficiency along with other factors on the spontaneous clearance of HCV in a large population-based cohort in British Columbia, Canada. The BC Hepatitis Testers Cohort includes all individuals tested for HCV in BC in 1990-2013 linked with data on their medical visits, hospitalizations and prescription drugs. HCV-positive individuals with at least one valid HCV PCR test on/after HCV diagnosis (n=46 783) were included in this study. To examine factors associated with the spontaneous clearance of HCV, multivariable logistic regression was fitted on the full sample, and Cox proportional hazards model on the HCV seroconverters. Spontaneous clearance was observed in 25.1% (n=11 737) of those tested for HCV. After adjusting for potential confounders, the odds of spontaneous clearance of HCV was lower in people with primary T-cell immunodeficiency (adjusted odds ratio [aOR]: 0.55, 95% CI: 0.32-0.94), and higher in females (aOR: 1.61, 95% CI: 1.54-1.68) and in those coinfected with HBV (aOR: 2.31, 95% CI: 1.93-2.77). Similar results were observed in HCV seroconverters except HBV coinfection was not significant. In conclusion, primary T-cell immunodeficiency is associated with a lower spontaneous clearance of HCV while female sex and coinfection with HBV are associated with a higher spontaneous clearance.