Objective Osteoarthritis(OA)is a common degenerative joint disease,but its pathogenesis remains largely unclear.This study aimed to explore the key diagnostic markers and immune microenvironment involved in the develop-ment of OA,in order to provide references and assistance for diagnosis and treatment strategies of OA.Methods Gene expression datasets GSE169077 and GSE55235 from Gene expression omnibus(GEO)database were analyzed to identify key diagnostic marker genes and detect immune cell infiltration in OA.Results A total of 402 differentially expressed genes were obtained,including 230 up-regulated genes and 172 down-regulated genes.After screening and verification,COL1A2 was identified as a key diagnostic marker gene.Analysis of immune cell infiltration showed that neutrophils,dendritic cells,NK cells,T cells,monocytes and macrophages were highly expressed in the OA immune microenviron-ment.Conclusion This study finds that COL1A2 gene may be a key diagnostic marker for OA.COL1A2 may exert bio-logical effects through extracellular matrix(ECM)receptor pathway,focal adhesion(FA)signaling pathway,etc.Neu-trophils,dendritic cells,NK cells,T cells and other immune cells play an important role in the immune microenviron-ment changes of OA.The results help to further understand the pathogenesis of OA and provide a reference for diagnosis and treatment.