Pear black spot disease, caused by Alternaria alternata, is a devastating disease in pears and leads to enormous economic losses worldwide. In this investigation, we isolated a Streptomyces odonnellii SZF-179 from the rhizosphere soil of pear plants in China. Indoor confrontation experiments results showed that both SZF-179 and its aseptic filtrate had excellent inhibitory effects against A. alternata. Afterwards, the main antifungal compound of SZF-179 was identified as polyene, with thermal and pH stability in the environment. A microscopic examination of A. alternata mycelium showed severe morphological abnormalities caused by SZF-179. Protective studies showed that SZF-179 fermentation broth could significantly reduce the diameter of the necrotic lesions on pear leaves by 42.25%. Furthermore, the potential of fermentation broth as a foliar treatment to control black leaf spot was also evaluated. Disease indexes of ‘Hosui’ and ‘Wonwhang’ pear plants treated with SZF-179 fermentation broth were lower than that of control plants. Overall, SZF-179 is expected to be developed into a safe and broad-spectrum biocontrol agent. No studies to date have evaluated the utility of S. odonnellii for the control of pear black spot disease; our study fills this research gap. Collectively, our findings provide new insights that will aid the control of pear black spot disease, as well as future studies of S. odonnellii strains.