Although numerous polymorphisms have been associated with inflammatory bowel disease (IBD), identifying the function of these genetic factors has proved challenging. Here we identified a role for nine genes in IBD susceptibility loci in antibacterial autophagy and characterized a role for one of these genes, GPR65, in maintaining lysosome function. Mice lacking Gpr65, a proton-sensing G protein-coupled receptor, showed increased susceptibly to bacteria-induced colitis. Epithelial cells and macrophages lacking GPR65 exhibited impaired clearance of intracellular bacteria and accumulation of aberrant lysosomes. Similarly, IBD patient cells and epithelial cells expressing an IBD-associated missense variant, GPR65 I231L, displayed aberrant lysosomal pH resulting in lysosomal dysfunction, impaired bacterial restriction, and altered lipid droplet formation. The GPR65 I231L polymorphism was sufficient to confer decreased GPR65 signaling. Collectively, these data establish a role for GPR65 in IBD susceptibility and identify lysosomal dysfunction as a potentially causative element in IBD pathogenesis with effects on cellular homeostasis and defense. Gene mapping efforts have identified numerous disease-associated genes, but understanding how these genes influence disease has proved challenging. Xavier and colleagues identify a role for GPR65 in lysosomal homeostasis and demonstrate that the IBD-associated risk variant GPR65 I231L confers lysosomal dysfunction with effects on autophagy, pathogen clearance, and intestinal homeostasis.