Ulcerative colitis is a chronic inflammatory bowel disease that strongly affects patient quality of life. Side effects of current therapies necessitate new treatment strategies that maximise the drug concentration at the site of inflammation, while minimizing systemic exposure. Capitalizing on the biocompatible and biodegradable structure of lipid mesophases, we present a temperature-triggered in situ forming lipid gel for topical treatment of colitis. We show that the gel is versatile and can host and release drugs of different polarities, including tofacitinib and tacrolimus, in a sustained manner. Further, we demonstrate its adherence to the colonic wall for at least 6 h, thus preventing leakage and improving drug bioavailability. Importantly, we find that loading known colitis treatment drugs into the temperature-triggered gel improves animal health in two mouse models of acute colitis. Overall, our temperature-triggered gel may prove beneficial in ameliorating colitis and decreasing adverse effects associated with systemic application of immunosuppressive treatments.