Optimization of the screening hit 1 led to the identification of novel 1,5-naphthyridine aminothiazole and pyrazole derivatives, which are potent and selective inhibitors of the transforming growth factor-beta type I receptor, ALK5. Compounds 15 and 19, which inhibited ALK5 autophosphorylation with IC50 = 6 and 4 nM, respectively, showed potent activities in both binding and cellular assays and exhibited