This study aims to validate that allicin can regulate PD-L1 expression through the IL-6/JAK2/STAT3 pathway, thereby inhibiting immune evasion in osteosarcoma.<h4>Methods</h4>We screened differentially expressed genes associated with prognosis using the GEO database and identified the IL-6/JAK2/STAT3/PDL1 pathway through KEGG and GO enrichment analysis. Here, STAT3 is linked to osteosarcoma.