Our findings demonstrate that both QFDYGs and QFDYDs exert protective effects against ALI through modulation of the TLR4 signaling pathway, restoration of gut microbiota balance, and regulation of metabolic pathways. This evidence concerns the gene TLR4 and acute respiratory distress syndrome.