Brown rot of stone fruit, a disease caused by the ascomycete fungus Monilinia fructicola, has caused significant losses to the agricultural industry. In order to explore and discover potential fungicides against M. fructicola, thirty-one novel mandelic acid derivatives containing piperazine moieties were designed and synthesized based on the amide skeleton. Among them, target compound Z31 exhibited obvious in vitro antifungal activity with the EC50 value of 11.8 mg/L, and significant effects for the postharvest pears (79.4 % protective activity and 70.5 % curative activity) at a concentration of 200 mg/L. Antifungal activity for the target compounds was found to be significantly improved by the large steric hindrance of the R1 groups and the electronegative of the piperazines in the molecular structure, according to a three-dimensional quantitative structure–activity relationship (3D-QSAR) analysis. Further mechanism studies have demonstrated that the compound Z31 can disrupt cell membrane integrity, resulting in increased membrane permeability, release of intracellular electrolytes, and affect the normal growth of hyphae. Additional, morphological study also indicated that Z31 may disrupt the integrity of the membrane by inducing generate excess endogenous reactive oxygen species (ROS) and resulting in the peroxidation of cellular lipids, which was further verified by the detection of malondialdehyde (MDA) content. These studies have provided the basis for the creation of novel fungicides to prevent brown rot in stone fruits.