In general, this study studied the association between mitophagy-related genes and OP through a number of machine learning and biological analysis, and screened three hub genes, NELFB, SFSWAP and MAP3K3, which can be used as potential biomarkers for the diagnosis, mechanism research and treatment of osteoporosis. Here, MAP3K3 is linked to osteoporosis.