A compound of Formula I or its stereoisomers, pharmaceutically acceptable salts, hydrates, solvates, tautomers, polymorphs, racemic mixtures, or optically active forms thereof, wherein R 1 is selected from C 1-6 alkyl, C 2-6 alkenyl, C 3-6 cycloalkyl, C 1-6 alkylamino, C 1-6 aminoalkylene, or 4-7 membered saturated or unsaturated carbocyclyl or heterocyclyl ring, wherein the heterocyclyl ring is optionally substituted with up to three heteroatoms independently selected from O, N, or S, wherein C 1-6 alkyl, C 2-6 alkenyl, C 3-6 cycloalkyl, C 1-6 alkylamino, C 1-6 aminoalkylene, and 4-7 membered saturated or unsaturated carbocyclyl or heterocyclyl ring are optionally substituted with 1 to 3 groups independently selected from halogen, amino, hydroxy, SO 3 H, O-PO 3 H 2, COOR 8, CONHR s, SO 2 NHR 8, methylsulfone, C 1-6 alkyl, C 1-6 alkoxy, C 1-6 haloalkoxy, C 3-6 cycloalkyl, C 3-6 cycloalkylamino, C 3-6 aminocycloalkyl, C 3-6 cycloalkylhydroxy, C 1-6 alkylamino, or 3-7 membered saturated or unsaturated heterocyclyl ring optionally substituted with up to three heteroatoms independently selected from O, N, or S; R 8 is selected from hydrogen, or C 1-6 alkyl; R 2 is selected from hydrogen, halogen, hydroxyl, cyano, C 1-6 alkoxy, C 1-6 haloalkyl, C 1-6 haloalkoxy, or C 1-6 alkyl; R 3 is selected from hydrogen, fluoro, C 1-4 alkoxy, hydroxyl, or amino; X 1 is N or CR 4; R 4 is selected from hydrogen, C 1-6 alkoxy, C 1-6 haloalkyl, C 1-6 haloalkoxy, or C 1-6 alkyl; X 2 is N or CR 5; R 5 is selected from hydrogen, cyano, C 1-6 alkyl, C 1-6 alkylamino, C 1-6 alkoxy, C 1-6 haloalkoxy, or COOH, wherein C 1-6 alkyl, and C 1-6 alkylamino are optionally substituted with one or more groups selected from COOH, hydroxyl, amino, or C 1-6 alkyl; n 1 is 0 or 1; n 2 is 1 or 2; R 6 is selected from hydrogen, C 1-6 alkoxy, or C 1-6 alkyl; Y 1, and Y 2 are independently selected from N or CR 7; R 7 is selected from hydrogen, halogen, cyano, C 1-6 alkoxy, C 1-6 haloalkyl, C 1-6 haloalkoxy, or C 1-6 alkyl; and Z 1 is selected from O, S, NH, or CH 2. or its stereoisomers, pharmaceutically acceptable salts, hydrates, solvates, tautomers, polymorphs, racemic mixtures, or optically active forms thereof, wherein R 1 is selected from C 1-6 alkyl, C 2-6 alkenyl, C 3-6 cycloalkyl, C 1-6 alkylamino, C 1-6 aminoalkylene, or 4-7 membered saturated or unsaturated carbocyclyl or heterocyclyl ring, wherein the heterocyclyl ring is optionally substituted with up to three heteroatoms independently selected from O, N, or S, wherein C 1-6 alkyl, C 2-6 alkenyl, C 3-6 cycloalkyl, C 1-6 alkylamino, C 1-6 aminoalkylene, and 4-7 membered saturated or unsaturated carbocyclyl or heterocyclyl ring are optionally substituted with 1 to 3 groups independently selected from halogen, amino, hydroxy, SO 3 H, O-PO 3 H 2, COOR 8, CONHR s, SO 2 NHR 8, methylsulfone, C 1-6 alkyl, C 1-6 alkoxy, C 1-6 haloalkoxy, C 3-6 cycloalkyl, C 3-6 cycloalkylamino, C 3-6 aminocycloalkyl, C 3-6 cycloalkylhydroxy, C 1-6 alkylamino, or 3-7 membered saturated or unsaturated heterocyclyl ring optionally substituted with up to three heteroatoms independently selected from O, N, or S; R 8 is selected from hydrogen, or C 1-6 alkyl; R 2 is selected from hydrogen, halogen, hydroxyl, cyano, C 1-6 alkoxy, C 1-6 haloalkyl, C 1-6 haloalkoxy, or C 1-6 alkyl; R 3 is selected from hydrogen, fluoro, C 1-4 alkoxy, hydroxyl, or amino; X 1 is N or CR 4; R 4 is selected from hydrogen, C 1-6 alkoxy, C 1-6 haloalkyl, C 1-6 haloalkoxy, or C 1-6 alkyl; X 2 is N or CR 5; R 5 is selected from hydrogen, cyano, C 1-6 alkyl, C 1-6 alkylamino, C 1-6 alkoxy, C 1-6 haloalkoxy, or COOH, wherein C 1-6 alkyl, and C 1-6 alkylamino are optionally substituted with one or more groups selected from COOH, hydroxyl, amino, or C 1-6 alkyl; n 1 is 0 or 1; n 2 is 1 or 2; R 6 is selected from hydrogen, C 1-6 alkoxy, or C 1-6 alkyl; Y 1, and Y 2 are independently selected from N or CR 7; R 7 is selected from hydrogen, halogen, cyano, C 1-6 alkoxy, C 1-6 haloalkyl, C 1-6 haloalkoxy, or C 1-6 alkyl; and Z 1 is selected from O, S, NH, or CH 2.