Our study used multiple datasets to verify the differential expression of KMT2D in osteoporosis patients, and further verified the differential expression of KMT2D in osteoporosis patients through clinical samples, and elucidated the immune and pathological mechanisms of KMT2D in osteoporosis patients, and further analyzed the role of KMT2D in pan-cancer. The gene discussed is KMT2D; the disease is osteoporosis.