Cervical cancer and endometrial cancer remain serious threats to women's health. Even though some patients can be treated with surgery plus chemoradiotherapy as a conventional option, the overall efficacy is deemed unsatisfactory. As such, the development for new treatment approaches is truly necessary. In recent years, immunotherapy has been widely used in clinical practice and it is an area of great interest that researchers are keeping attention on. However, a thorough immunerelated genes (IRGs) study for cervical cancer and endometrial cancer is still lacking. We therefore aim to make a comprehensive evaluation of IRGs through bioinformatics and large databases, and also investigate the relationship between the two types of cancer. We reviewed the transcriptome RNAs of IRGs and clinical data based on the TCGA database. Survival-associated IRGs in cervical/endometrial cancer were identified using univariable and multivariable Cox proportional-hazard regression analysis for developing an IRG signature model to evaluate the risk of patients. In the end, this model was validated based on the enrichment analyses through GO, KEGG, and GSEA pathways, Kaplan-Meier survival curve, ROC curves, and immune cell infiltration. Our results showed that out of 25/23 survival-associated IRGs for cervical/endometrial cancer, 13/12 warranted further examination by multivariate Cox proportional-hazard regression analysis and were selected to develop an IRGs signature model. As a result, enrichment analyses for high-risk groups indicated main enriched pathways were associated with tumor development and progression, and statistical differences were found between high-risk and low-risk groups as shown by Kaplan-Meier survival curve. This model could be used as an independent measure for risk assessment and was considered relevant to immune cell infiltration, but it had nothing to do with clinicopathological characteristics. In summary, based on comprehensive analysis, we obtained the IRGs signature model in cervical cancer (