Therefore, PTGS1 and PTGS2 might be involved in the development and treatment of osteoporosis, and our results of network pharmacology were in line with previous studies. This evidence concerns the gene PTGS2 and osteoporosis.