The endogenous selective estrogen receptor modulator 27-hydroxycholesterol is a negative regulator of bone homeostasis.