The present application relates to the field of pharmaceutical chemistry, in particular to pyrrole pyrimidine compound as shown in formula I, its stereoisomer and pharmaceutically acceptable salt. The application also relates to a method for preparing a pyrrole pyrimidine compound as shown in formula I, a pharmaceutical composition, and the use of the compound in the treatment of LMK mediated diseases.本申請涉及藥物化學領域,具體涉及如式I所示的吡咯并嘧啶化合物、其立體異構體、其藥學上可接受的鹽。本申請還涉及製備如式I所示的吡咯并嘧啶化合物的方法、藥物組合物、以及該化合物在治療兩面神激酶介導的疾病中的用途。