Post‐translational modifications on the histone H3 tail regulate chromatin structure, impact epigenetics, and hence the gene expressions. Current chemical modulation tools, such as unnatural amino acid incorporation, protein splicing, and sortase‐based editing, have allowed for the modification of histones with various PTMs in cellular contexts, but are not applicable for editing native chromatin. The use of small organic molecules to manipulate histone‐modifying enzymes alters endogenous histone PTMs but lacks precise temporal and spatial control. To date, there has been no achievement in modulating histone methylation in living cells with spatiotemporal resolution. In this study, a new method is presented for temporally manipulating histone dimethylation H3K9me2 using a photo‐responsive inhibitor that specifically targets the methyltransferase G9a on demand. The photo‐caged molecule is stable under physiological conditions and cellular environments, but rapidly activated upon exposure to light, releasing the bioactive component that can immediately inhibit the catalytic ability of the G9a in vitro. Besides, this masked compound could also efficiently reactivate the inhibition of methyltransferase activity in living cells, subsequently suppress H3K9me2, a mark that regulates various chromatin functions. Therefore, the chemical system will be a valuable tool for manipulating the epigenome for therapeutic purposes and furthering the understanding of epigenetic mechanisms.