The present invention discloses a nitrogen-containing aromatic heterocyclic compound, a process for its preparation, a pharmaceutical composition and an application. The nitrogen-containing aromatic heterocyclic compounds of the present invention are useful for the treatment and/or prevention of various ALK5-mediated diseases.本發明公開了一種含氮芳香雜環化合物、其製備方法、藥物組合物和應用。本發明的含氮芳香雜環化合物可用於治療及/或預防各種ALK5介導的疾病。