The invention provides dihydroimidazole pyridine compounds. The compound can be used in the treatment of various diseases in which BTK is involved, especially in the treatment of hematological malignancies, inflammation and autoimmune diseases, and has great application value.