Described are genes and chimeric genes encoding anti-microbial peptides. These genes can be used to generate transgenic plants with an improved resistance to, for example, plant pathogenic fungi. Alternatively, the peptides encoded by these genes can be applied as agrochemical formulations to plants suffering from microbial diseases such as fungal diseases.