Human papillomavirus (HPV) is predominantly associated with HPV-related cancers, however, the precise mechanisms underlying the HPV-host epigenetic architectures in HPV carcinogenesis remain elusive. Here, we employed high-throughput chromosome conformation capture (Hi-C) to comprehensively map HPV16/18-host chromatin interactions. Our study identified the transcription factor Sp1 as a pivotal mediator in programming HPV-host interactions. By targeting Sp1, the active histone modifications (H3K27ac, H3K4me1, and H3K4me3) and the HPV-host chromatin interactions are reprogrammed, which leads to the downregulation of oncogenes located near the integration sites in both HPV (E6/E7) and the host genome (KLF5/MYC). Additionally, Sp1 inhibition led to the upregulation of immune checkpoint genes by reprogramming histone modifications in host cells. Notably, humanized patient-derived xenograft (PDX-HuHSC-NSG) models demonstrated that Sp1 inhibition promoted anti-PD-1 immunotherapy via remodeling the tumor immune microenvironment in cervical cancer. Moreover, single-cell transcriptomic analysis validated the enrichment of transcription factor Sp1 in epithelial cells of cervical cancer. In summary, our findings elucidate Sp1 as a key mediator involved in the programming and reprogramming of HPV-host epigenetic architecture. Inhibiting Sp1 with plicamycin may represent a promising therapeutic option for HPV-related carcinoma.