Disclosed herein are methods and compounds for inhibiting bone and/or cartilage resorption in an individual. The methods comprise administering to the individual a composition comprising a therapeutically effective amount of a compound that is an irreversible inhibitor of a Bruton's tyrosine kinase (BTK), or a pharmaceutically acceptable salt thereof. Also described are irreversible inhibitors of Btk and methods for the preparation of the compounds. Also disclosed are pharmaceutical compositions that include the compounds. Methods of using the Btk inhibitors are disclosed, alone or in combination with other therapeutic agents, for the inhibition of cancer metastasis, and for inhibition of bone or cartilage resorption in cancer patients.