A compound of Formula I or its stereoisomers, pharmaceutically acceptable salts, complexes, hydrates, solvates, tautomers, polymorphs, racemic mixtures and 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 upto 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, hydroxyl, SO 3 H, O-PO 3 H 2, COOR 9, CONHR 9, SO 2 NHR 9, 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 upto three heteroatoms independently selected from O, N or S; R 9 is selected from hydrogen, or C 1-6 alkyl; R 2 is selected from hydrogen, fluorine, chlorine, cyano, C 1-6 alkoxy, or hydroxyl; R 3 is selected from hydrogen, C 1-6 alkyl, fluorine, C 1-6 alkoxy, hydroxyl, or amino; X 1 is N or CR 4; R 4 is selected from hydrogen, halogen, cyano, 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, halogen, cyano, C 1-6 alkoxy, C 1-6 haloalkyl, C 1-6 haloalkoxy, or C 1-6 alkyl; X 3 is N or CR 6; and X 4 is CR 6 when dotted line (----) represents a bond; R 6 is selected from hydrogen, cyano, C 1-6 alkyl, C 1-6 alkylamino, C 1-6 alkoxy, C 1-6 haloalkoxy, or COOH; or X 3 is CH 2 or O; and X 4 is CH 2 when dotted line (----) represents no bond; n 1 is 0 to 2; 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; Zi is selected from O, S, NH, or CH 2; and R 8 is selected from hydrogen, hydroxyl, C 1-6 alkyl, or fluorine. 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 upto 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, hydroxyl, SO 3 H, O-PO 3 H 2, COOR 9, CONHR 9, SO 2 NHR 9, 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 upto three heteroatoms independently selected from O, N or S; R 9 is selected from hydrogen, or C 1-6 alkyl; R 2 is selected from hydrogen, fluorine, chlorine, cyano, C 1-6 alkoxy, or hydroxyl; R 3 is selected from hydrogen, C 1-6 alkyl, fluorine, C 1-6 alkoxy, hydroxyl, or amino; X 1 is N or CR 4; R 4 is selected from hydrogen, halogen, cyano, 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, halogen, cyano, C 1-6 alkoxy, C 1-6 haloalkyl, C 1-6 haloalkoxy, or C 1-6 alkyl; X 3 is N or CR 6; and X 4 is CR 6 when dotted line (----) represents a bond; R 6 is selected from hydrogen, cyano, C 1-6 alkyl, C 1-6 alkylamino, C 1-6 alkoxy, C 1-6 haloalkoxy, or COOH; or X 3 is CH 2 or O; and X 4 is CH 2 when dotted line (----) represents no bond; n 1 is 0 to 2; 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; Zi is selected from O, S, NH, or CH 2; and R 8 is selected from hydrogen, hydroxyl, C 1-6 alkyl, or fluorine.