Osteoporosis can be secondary to an underlying metabolic, nutritional, pharmacologic or disease-related cause; in such cases the triggering factor should be identified and treated. Approaches to the identification and management of patients with secondary osteoporosis are outlined in this Review, alongside mechanistic insights into the bone pathology.