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. The gene discussed is ERP29; the disease is Salmonella Infections.