Conclusion: This study identifies the immune-related gene IL17RA as a diagnostic marker of osteoporosis from an immunological perspective, and provides insight into its biological function. This evidence concerns the gene IL17RA and osteoporosis.