The present study demonstrated that berberine has a good therapeutic effect on Salmonella infection in chicks, as it inhibits the occurrence and development of Salmonella-induced intestinal inflammation by regulating the balance of the gut microbiota and the expression of related genes, including ATAD5, ERP29, MGST2, PIK3CA, and HSP90AA1. This evidence concerns the gene MGST2 and Salmonella Infections.