In addition to diet, exercise and other lifestyle factors can also play an important role in bone health. Smoking and drinking too much alcohol can increase your chances of developing osteoporosis, while weight-bearing exercise (such as walking, dancing, yoga, or lifting weights) can lower your risk. Strength or resistance training—using machines, free weights, elastic bands, or your own body weight—can be especially effective in helping to prevent loss of bone mass as you age.