The calcium-dependent protein kinase ZmCPK39 is identified as a key immune component in maize infected with foliar pathogens. Its expression is lower in resistant maize lines than in susceptible lines, leading to stabilization of the transcription factor ZmDi19, elevated expression of the anti-microbial protein ZmPR10 and enhanced resistance to multiple foliar diseases.