ObjectiveTo investigate the interrelationships between maternal socioeconomic status (SES), race and congenital heart diseases (CHD) among infants.DesignRetrospective cohort study.Study settingOntario, Canada.Study populationAll singleton stillbirths and live births born in hospitals between 1 April 2012 and 31 March 2018 in Ontario, Canada (n=804 292).OutcomeCHD.AnalysisMultivariable logistic regression models were performed to assess associations between maternal neighbourhood household income, education level, race and CHD while adjusting for maternal age at birth, assisted reproductive technology, obesity, pre-existing health conditions, substance use during pregnancy, maternal rural residence and infant’s sex.ResultsCompared with infants whose mothers lived in the highest median household income neighbourhoods, infants whose mothers lived in the lowest median income neighbourhoods had a higher likelihood of having CHD (adjusted OR 1.15, 95% CI 1.06 to 1.24). Compared with infants whose mothers lived in neighbourhoods with more people with a university or higher degree, those infants whose mothers lived in neighbourhoods with less people with a university or higher degree had a higher chance of developing CHD (adjusted OR 1.26, 95% CI 1.16 to 1.36). Compared with white mothers, black mothers had a higher odds of giving birth to a child with CHD (adjusted OR 1.40, 95% CI 1.27 to 1.54). No association was detected between White and Asian mothers and CHD among infants.ConclusionsOur study indicates that there are inequities in CHD burden by maternal SES and race in Ontario, Canada. Further investigation is needed to examine racial variation in CHD using more detailed ethnic data.