Many pathogenic fungi depend on the development of specialized infection structures called appressoria to invade their hosts and cause disease. Impairing the function of fungal infection structures therefore provides a potential means by which diseases could be prevented. In spite of this extraordinary potential, however, relatively few anti-penetrant drugs have been developed to control fungal diseases, of either plants or animals. In the present study, we report the identification of compounds that act specifically to prevent fungal infection. We found that the organization of septin GTPases, which are essential for appressorium-mediated infection in the rice blast fungus Magnaporthe oryzae, requires very-long-chain fatty acids (VLCFAs), which act as mediators of septin organization at membrane interfaces. VLCFAs promote septin recruitment to curved plasma membranes and depletion of VLCFAs prevents septin assembly and host penetration by M. oryzae. We observed that VLCFA biosynthesis inhibitors not only prevent rice blast disease, but also show effective, broad-spectrum fungicidal activity against a wide range of fungal pathogens of maize, wheat and locusts, without affecting their respective hosts. Our findings reveal a mechanism underlying septin-mediated infection structure formation in fungi and provide a class of fungicides to control diverse diseases of plants and animals.