Phosphorylation of the phosphatase PTPROt at Tyr399 is a molecular switch that controls osteoclast activity and bone mass in vivo.