Osteoporosis is associated with NOD2 variants, inflammatory course of disease and underweight. Here, NOD2 is linked to osteoporosis.