An azatricyclic compound (as represented by formula I) which acts as an inhibitor of fibroblast growth factor receptors (FGFR), as well as a pharmaceutical composition thereof, a preparation method, and a use therefor in the treatment of FGFR-mediated diseases. The azatricyclic compound exerts an effect by means of participating in the regulation of a plurality of processes such as cell proliferation, apoptosis, migration, neovascularization, and the like. AA%%%Formula (I). R6,, N H Formula ( I ) No suitable figure