Kaposi\'s sarcoma herpesvirus (KSHV) establishes lifelong oncogenic infection in lymphatic endothelial cells (LECs) by ensuring episomal maintenance of its genome via the viral protein LANA. Efficient viral genome maintenance typically involves host DNA replication and episome tethering, but the extent of cell-type-specific regulation remains unclear. Here, we identify that KSHV hijacks the pioneering function of the endothelial-specific transcription factor SOX18 to facilitate persistence of viral episomes. Upon infection, LANA co-opts SOX18 to recruit the SWI/SNF chromatin-remodeling complex via its ATPase subunit BRG1, enhancing chromatin accessibility and enabling efficient viral genome persistence. Disruption of SOX18 or BRG1, genetically or pharmacologically, leads to reduced episome load and attenuated hallmarks of virus infection. This work highlights how viruses can harness lineage-specific transcriptional regulators to establish persistent nuclear retention of their episome into the host genome.