Abstract Antibiotic use is a risk factor for development of inflammatory bowel diseases (IBDs). IBDs are characterized by a damaged mucus layer, which does not properly separate the host intestinal epithelium from the microbiota. Here, we hypothesized that antibiotics might affect the integrity of the mucus barrier. By systematically determining the effects of different antibiotics on mucus layer penetrability we found that oral antibiotic treatment led to breakdown of the mucus barrier and penetration of bacteria into the mucus layer. Using fecal microbiota transplant, RNA sequencing followed by machine learning and ex vivo mucus secretion measurements, we determined that antibiotic treatment induces ER stress in the colonic tissue which inhibits colonic mucus secretion in a microbiota-independent manner. This mucus secretion flaw led to penetration of bacteria into the colonic mucus layer, translocation of microbial antigens into circulation and exacerbation of ulcerations in a mouse model of IBD. Thus, antibiotic use might predispose to development of intestinal inflammation by impeding mucus production.