Reduced hepatocyte swelling in mice with colitis, inhibited IL-1β and TNF-α expression, and attenuated hepatic inflammation and cholestasis by regulating TLR4 NF-κB and bile acid metabolic pathways. Here, TNF is linked to colitis.