Epigenetic gene regulation is a dynamic process orchestrated by chromatin-modifying enzymes. Many of these master regulators exert their function through covalent modification of DNA and histone proteins. Aberrant epigenetic processes have been implicated in the pathophysiology of multiple human diseases. Small-molecule inhibitors have been essential to advancing our understanding of the underlying molecular mechanisms of epigenetic processes. However, the resolution offered by small molecules is often insufficient to manipulate epigenetic processes with high spatiotemporal control. Here we present a generalizable approach, referred to as 'chemo-optical modulation of epigenetically regulated transcription' (COMET), enabling high-resolution, optical control of epigenetic mechanisms based on photochromic inhibitors of human histone deacetylases using visible light. COMET probes may be translated into new therapeutic strategies for diseases where conditional and selective epigenome modulation is required.