B3galt5 functions as a PXR target gene and regulates obesity and insulin resistance by maintaining intestinal integrity. Here, NR1I2 is linked to obesity due to melanocortin 4 receptor deficiency.