Bivalent histone modifications, including functionally opposite H3K4me3 and H3K27me3 marks simultaneously on the same nucleosome, control various cellular processes by fine-tuning the gene expression in eukaryotes. However, the role of bivalent histone modifications in fungal virulence remains elusive. By mapping the genome-wide landscape of H3K4me3 and H3K27me3 dynamic modifications in Fusarium graminearum (Fg) during invasion, we identify the infection-related bivalent chromatin-marked genes (BCGs). BCG1 gene, which encodes a secreted Fusarium-specific xylanase containing a G/Q-rich motif, displays the highest increase of bivalent modification during Fg infection. We report that the G/Q-rich motif of BCG1 is a stimulator of its xylanase activity and is essential for the full virulence of Fg. Intriguingly, this G/Q-rich motif is recognized by pattern-recognition receptors to trigger plant immunity. We discover that Fg employs H3K4me3 modification to induce BCG1 expression required for host cell wall degradation. After breaching the cell wall barrier, this active chromatin state is reset to bivalency by co-modifying with H3K27me3, which enables epigenetic silencing of BCG1 to escape from host immune surveillance. Collectively, our study highlights how fungal pathogens deploy bivalent epigenetic modification to achieve temporally-coordinated activation and suppression of a critical fungal gene, thereby facilitating successful infection and host immune evasion.