In conclusion, the inflammation promotes the progress of osteoporosis by the RANKL/RANK‐related pathway and anti‐inflammation can alleviate the development of osteoporosis. This evidence concerns the gene TNFSF11 and osteoporosis.