Localized oxysterol production by fibroblastic stromal cells provided an essential signal for colonic lymphoid tissue development, and inflammation-induced increased oxysterol production caused colitis through GPR183-mediated cell recruitment. Here, GPR183 is linked to colitis.