DNAzymes exhibit tremendous application potentials in the field of biosensing and gene regulation due to its unique catalytic function. However, spatiotemporally controlled regulation of DNAzyme activity remains a daunting challenge, which may cause nonspecific signal leakage or gene silencing of the catalytic systems. Here, we report a photochemical approach via modular weaving active DNAzyme into the skeleton of tetrahedral DNA nanocages (TDN) for light-triggered on-demand liberation of DNAzyme and thus conditional control of gene regulation activity. We demonstrate that the direct encoding of DNAzyme in TDN could improve the biostability of DNAzyme and ensure the delivery efficiency, comparing with the conventional surface anchoring strategy. Furthermore, the molecular weaving of the DNA nanostructures allows remote control of DNAzyme-mediated gene regulation with high spatiotemporal precision of light. In addition, we demonstrate that the approach is applicable for controlled regulation of the gene editing functions of other functional nucleic acids.