With the gradual emergence of xylazine as a street drug, incidents of xylazine poisoning are now occurring worldwide. However, it remains unknown whether long‐term exposure to xylazine causes nonalcoholic fatty liver disease (NAFLD). In the present study, the rats were injected with xylazine intraperitoneally for 28 consecutive days, and then serum and liver tissues were collected for analysis. Weight loss was observed in the 40 mg/kg group and elevated levels of aspartate aminotransferase (AST) and alanine aminotransferase (ALT) were observed. Histopathologic examination showed hepatic steatosis, necrosis, and fibrosis. By mRNA sequencing, 192 upregulated genes and 277 downregulated genes were found in the 40 mg/kg group, and the PPAR signaling pathway was ranked first in the KEGG pathway analysis. Four genes in the PPAR signaling pathway, Fabp5, Acox2, and Cpt2, were also verified in the 40 mg/kg group by RT‐qPCR analysis and western blot. Our results demonstrated that long‐term injection of xylazine causes NAFLD and the PPAR signaling pathway plays a core role in the process of xylazine‐associated liver injury.