Disclosed herein are compounds that form covalent bonds with Bruton's tyrosine kinase (Btk). Also described are irreversible inhibitors of Btk, such as those having the structure of Formula (B)Methods for the preparation of the compounds are disclosed. 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 treatment of autoimmune diseases or conditions, heteroimmune diseases or conditions, cancer, including lymphoma, and inflammatory diseases or conditions.