IMPORTANCE: Human papillomavirus (HPV)–positive status in patients with oropharyngeal squamous cell carcinoma (OPSCC) is associated with improved survival compared with HPV-negative status. However, it remains controversial whether HPV is associated with improved survival among patients with nonoropharyngeal and cervical squamous cell tumors. OBJECTIVE: To investigate differences in the immunogenomic landscapes of HPV-associated tumors across anatomical sites (the head and neck and the cervix) and their association with survival. DESIGN, SETTING, AND PARTICIPANTS: This cohort study used genomic and transcriptomic data from the Cancer Genome Atlas (TCGA) for 79 patients with OPSCC, 435 with nonoropharyngeal head and neck squamous cell carcinoma (non-OP HNSCC), and 254 with cervical squamous cell carcinoma and/or endocervical adenocarcinoma (CESC) along with matched clinical data from TCGA. The data were analyzed from November 2020 to March 2021. MAIN OUTCOMES AND MEASURES: Positivity for HPV was classified by RNA-sequencing reads aligned with the HPV reference genome. Gene expression profiles, immune cell phenotypes, cytolytic activity scores, and overall survival were compared by HPV tumor status across multiple anatomical sites. RESULTS: The study comprised 768 patients, including 514 (66.9%) with HNSCC (380 male [73.9%]; mean [SD] age, 59.5 [10.8] years) and 254 (33.1%) with CESC (mean [SD] age, 48.7 [14.1] years). Human papillomavirus positivity was associated with a statistically significant improvement in overall survival for patients with OPSCC (adjusted hazard ratio [aHR], 0.06; 95% CI, 0.02-0.17; P