Hydraulic fracturing (fracking) is a method used to extract unconventional natural gas (UNG). Living near UNG operations has been associated with various health outcomes, but few have explored the association between UNG and mental health and substance use. Our objective was to evaluate the association between metrics of residential UNG well density/proximity and mental illness and substance use among pregnant individuals in Northeastern British Columbia, Canada. Individuals who gave birth at the Fort St John hospital between December 30, 2006 and December 29, 2016 (n=6278) were included in the study. Exposure was determined using inverse distance weighting (IDW) to calculate the density and proximity of UNG wells to the postal code centroid ofindividual's residential address at delivery. Four exposure metrics, categorized by quartiles, were calculated based on 50, 10, 5 and 2.5km buffer zones around each postal code centroid. Logistic regression was used to separately evaluate associations between IDW quartiles of each metric and diagnosis of depression and anxiety prior to or during pregnancy, and self-reported substance use during pregnancy, controlling for relevant and available confounders. The second and third quartile (Q) of the 10km IDW were associated with greater odds of depression (Q2: adjusted (aOR) 1.30, 95% (confidence interval) CI 1.03-1.64; Q3: aOR 1.35, 95% CI 1.07-1.70) compared to the first quartile, but not the fourth. Using the 5km IDW, we observed a suggestive positive association with depression in the second and third quartile (aOR Q2: 1.21, 95% CI 0.96-1.53; aOR Q3: 1.24, 95% CI 0.98-1.57) compared to the first quartile. No statistically significant association was observed using the 2.5km IDW exposure metric. We observed some evidence of greater odds of mental illness prior to or during pregnancy, and substance use during pregnancy in pregnant individuals living in postal codes with increased UNG well density/proximity, although associations were not observed in smaller buffer zones. This study adds to the growing literature on the adverse health outcomes surrounding living in proximity to UNG operations.