ObjectiveTo determine whether occupational exposure to silica dust causes an increased risk of developing Crohn’s disease (CD) and ulcerative colitis (UC).DesignCase–control study of CD (K50) and UC (K51) from 2007 through 2016. Controls were matched to cases (2:1) based on age, sex and county at the time of diagnosis. A job exposure matrix was used to estimate the occupational silica exposure of all cases and controls.SettingMedical and occupational data from the National Outpatient Register were used to implement a case–control analysis, while the two controls used for each case were selected from the National Register of the Total Population.ParticipantsAll men and women aged 20–65 years old who were diagnosed with CD (K50) and UC (K51) during the years of study were included and assigned two controls, resulting in 58 136 cases and 116 272 controls.Main outcomesSilica dust exposure correlates with an increased risk of developing UC in men and CD in women.ResultsThe prevalence of UC was significantly higher in the group exposed to silica dust (OR 1.13, 95% CI 1.06 to 1.21) than in controls, particularly in individuals with over 5 years exposure. When stratified by sex, a significantly increased OR was detected for men (OR 1.33, 95% CI 1.05 to 1.22). This trend was also consistent with longer exposure times. The prevalence of UC was not increased in exposed women. The prevalence of CD was significantly increased among exposed women (OR 1.29, 95% CI 1.01 to 1.65), but not for exposed men.ConclusionsSilica dust exposure correlates with an increased risk of developing UC, especially in men, and the risk seems to increase with the duration and degree of exposure. Conversely, silica dust exposure correlates positively with the risk of developing CD in women.