The rs79958549, rs139085828, and rs201335371 loci of the SOX4 gene and their interaction with environmental factors were associated with the risk of osteoporosis. Here, SOX4 is linked to osteoporosis.