Environmental pollution, virus infection, allergens, and other factors may cause respiratory disease, which could be improved by dietary therapy. Allium species are common daily food seasoning and have high nutritional and medical value. Diallyl disulfide (DADS) is the major volatile oil compound of Allium species. The present study aims to explore the preventive effect and potential mechanism of DADS on pulmonary fibrosis. C57BL/6J mice were intratracheally injected with bleomycin (BLM) to establish pulmonary fibrosis and then administrated with DADS. Primary lung fibroblasts or A549 were stimulated with BLM, followed by DADS, farnesoid X receptor (FXR) agonist (GW4064), yes-associated protein 1 (YAP1) inhibitor (verteporfin), or silencing of FXR and YAP1. In BLM-stimulated mice, DADS significantly ameliorated histopathological changes and interleukin-1β levels in bronchoalveolar lavage fluid. DADS decreased fibrosis markers, HIF-1α, inflammatory cytokines, and epithelial-mesenchymal transition in pulmonary mice and activated fibroblasts. DADS significantly enhanced FXR expression and inhibited YAP1 activation, which functions as GW4064 and verteporfin. A deficiency of FXR or YAP1 could result in the increase of these two protein expressions, respectively. DADS ameliorated extracellular matrix deposition, hypoxia, epithelial-mesenchymal transition, and inflammation in FXR or YAP1 knockdown A549. Taken together, targeting the crosstalk of FXR and YAP1 might be the potential mechanism for DADS against pulmonary fibrosis. DADS can serve as a potential candidate or dietary nutraceutical supplement for the treatment of pulmonary fibrosis.