Biomolecular condensates participate in the regulation of gene transcription, yet the relationship between nuclear condensation and transcriptional activation remains elusive. Here, we devised a biotinylated CRISPR-dCas9-based optogenetic method, light-activated macromolecular phase separation (LAMPS), to enable inducible formation, affinity purification, and multiomic dissection of nuclear condensates at the targeted genomic loci. LAMPS-induced condensation at enhancers and promoters activates endogenous gene transcription by chromatin reconfiguration, causing increased chromatin accessibility and de novo formation of long-range chromosomal loops. Proteomic profiling of light-induced condensates by dCas9-mediated affinity purification uncovers multivalent interaction-dependent remodeling of macromolecular composition, resulting in the selective enrichment of transcriptional coactivators and chromatin structure proteins. Our findings support a model whereby the formation of nuclear condensates at native genomic loci reconfigures chromatin architecture and multiprotein assemblies to modulate gene transcription. Hence, LAMPS facilitates mechanistic interrogation of the relationship between nuclear condensation, genome structure, and gene transcription in living cells.