Research shows that strength training, or lifting weights, is a great way to prevent osteoporosis. One particular study looked at how strength training affects bone mineral density in young people assigned female at birth. The results showed that bone density in those who participated in the exercises was improved in just 12 weeks.