Background: Peritoneal fibrosis is a devastating complication of peritoneal dialysis. However, its precise mechanism is unclear, and specific treatments have not yet been established. Recent evidence suggests that the sonic hedgehog (SHH) signaling pathway is involved in tissue fibrogenesis. Drugs that inhibit this pathway are emerging in the field of anti-fibrosis therapy. Itraconazole, an anti-fungal agent, was also recently recognized as an inhibitor of the SHH signaling pathway. In this study, we used a mouse model to investigate whether the SHH signaling pathway is involved in the development of peritoneal fibrosis and the effects of itraconazole on peritoneal fibrosis. Methods: Peritoneal fibrosis was induced by intraperitoneal (IP) injection of 0.1% chlorhexidine gluconate (CG) solution every other day for 4 weeks, with or without itraconazole treatment (20 mg/kg, IP injection on a daily basis). Male C57BL/6 mice were divided into 4 groups: saline group, saline plus itraconazole group, CG group, and CG plus itraconazole group. Isotonic saline was administered intraperitoneally to the control group. The peritoneal tissues were evaluated for histological changes, expression of fibrosis markers, and the main components of the SHH signaling pathway. Results: Peritoneal thickening was evident in the CG group and was significantly decreased by itraconazole administration (80.4 ± 7.7 vs. 28.2 ± 3.8 µm, p < 0.001). The expression of the following SHH signaling pathway components was upregulated in the CG group and suppressed by itraconazole treatment: SHH, patched, smoothened, and glioma-associated oncogene transcription factor 1. The IP injection of CG solution increased the expression of fibrosis markers such as α-smooth muscle actin and transforming growth factor-β1 in the peritoneal tissues. Itraconazole treatment significantly decreased the expression of these markers. Conclusion: Our study provides the first evidence that the SHH signaling pathway may be implicated in peritoneal fibrosis. It also demonstrates that itraconazole treatment has protective effects on peritoneal fibrosis through the regulation of the SHH signaling pathway. These findings suggest that blockage of the SHH signaling pathway is a potential therapeutic strategy for peritoneal fibrosis.