Disclosed are an aromatic heterocyclic compound, an intermediate thereof, a preparation method therefor, and a pharmaceutical composition and use thereof. The aromatic heterocyclic compound of the present invention is a new ALK5 inhibitor, and is used for treating and/or preventing various ALK5-mediated diseases.L'invention concerne un composé hétérocyclique aromatique, un intermédiaire de celui-ci, son procédé de préparation, et une composition pharmaceutique et son utilisation. Le composé hétérocyclique aromatique de la présente invention est un nouvel inhibiteur d'ALK5, et est utilisé pour traiter et/ou prévenir diverses maladies médiées par ALK5.