A compound having Formula or a stereoisomer, a geometric isomer, a tautomer, an N -oxide, a hydrate, a solvate, an ester or a pharmaceutically acceptable salt thereof, wherein L is a bond, -(C(R 3b) 2) n -, -O-(C(R 3b) 2) n - or -C(=O)-(C(R 3b) 2) n -; ring A is R is H or R 13; R 13 is H, C 3-9 cycloalkyl or C 2-9 heterocyclyl; each X 7, X 5 and X 6 is independently -C(R 3a) 2 -, -N(R 2)-, -O-, -S(=O) m - or -C(=O)-; each X, X 1, X 2 and X 3 is independently CR 3a or N; each n is independently 0, 1, 2, 3 or 4; each n1 is independently 1, 2 or 3; each m is independently 0, 1 or 2; each R 2 is independently H, C 1-4 haloalkyl, HO-(C(R 3) 2) n C(=O)-, HO-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n -, H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -, C 2-9 heterocyclyl, C 3-9 cycloalkyl or C 1-4 alkyl; each R 3a, R 3b and R 3 is independently H, F, Cl, Br, C 1-4 alkyl, hydroxy, carboxy, C 2-9 heterocyclyl, C 3-9 cycloalkyl, C 1-4 haloalkyl, H-(CH 2) n -O-(CH 2) n -, H-O-(CH 2) n- C(=O)-(CH 2) n - or H-(CH 2) n -C(=O)-(CH 2) n -; each moiety represented by A is independently and optionally substituted with one, two, three or four substituents independently selected from H, C 1-4 alkyl, F, Cl, Br, amino, hydroxy, C 1-4 alkoxy, C 1-4 haloalkyl, (HO-(C(R 3) 2) n -C(=O)-, HO-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n - and H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -; each alkyl, haloalkyl, HO-(C(R 3) 2) n -C(=O)-, HO-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n -, H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -, heterocyclyl and cycloalkyl described in R, R 2 and/or R 13 is optionally and independently substituted with one, two, three or four independent R 5; each R 5 is independently H, oxo, C 1-6 alkyl, F, Cl, Br, amino, hydroxy, C 1-4 alkoxy, C 1-6 haloalkyl, H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) nl -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n -, C 2-9 heterocyclyl or C 3-9 cycloalkyl; each alkyl, alkoxy, haloalkyl, H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n1 -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n -, heterocyclyl, and cycloalkyl described in R 5 is independently and optionally substituted with one, two, three or four independent R 6; and each R 6 is independently H, oxo, C 1-4 alkyl, F, Cl, Br, amino, hydroxy, C 1-4 alkoxy, C 1-4 haloalkyl, H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n1 -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n -, C 2-9 heterocyclyl or C 3-9 cycloalkyl. L is a bond, -(C(R 3b) 2) n -, -O-(C(R 3b) 2) n - or -C(=O)-(C(R 3b) 2) n -; ring A is R is H or R 13; R 13 is H, C 3-9 cycloalkyl or C 2-9 heterocyclyl; each X 7, X 5 and X 6 is independently -C(R 3a) 2 -, -N(R 2)-, -O-, -S(=O) m - or -C(=O)-; each X, X 1, X 2 and X 3 is independently CR 3a or N; each n is independently 0, 1, 2, 3 or 4; each n1 is independently 1, 2 or 3; each m is independently 0, 1 or 2; each R 2 is independently H, C 1-4 haloalkyl, HO-(C(R 3) 2) n C(=O)-, HO-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n -, H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -, C 2-9 heterocyclyl, C 3-9 cycloalkyl or C 1-4 alkyl; each R 3a, R 3b and R 3 is independently H, F, Cl, Br, C 1-4 alkyl, hydroxy, carboxy, C 2-9 heterocyclyl, C 3-9 cycloalkyl, C 1-4 haloalkyl, H-(CH 2) n -O-(CH 2) n -, H-O-(CH 2) n- C(=O)-(CH 2) n - or H-(CH 2) n -C(=O)-(CH 2) n -; each moiety represented by A is independently and optionally substituted with one, two, three or four substituents independently selected from H, C 1-4 alkyl, F, Cl, Br, amino, hydroxy, C 1-4 alkoxy, C 1-4 haloalkyl, (HO-(C(R 3) 2) n -C(=O)-, HO-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n - and H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -; each alkyl, haloalkyl, HO-(C(R 3) 2) n -C(=O)-, HO-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n -, H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -, heterocyclyl and cycloalkyl described in R, R 2 and/or R 13 is optionally and independently substituted with one, two, three or four independent R 5; each R 5 is independently H, oxo, C 1-6 alkyl, F, Cl, Br, amino, hydroxy, C 1-4 alkoxy, C 1-6 haloalkyl, H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) nl -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n -, C 2-9 heterocyclyl or C 3-9 cycloalkyl; each alkyl, alkoxy, haloalkyl, H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n1 -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n -, heterocyclyl, and cycloalkyl described in R 5 is independently and optionally substituted with one, two, three or four independent R 6; and each R 6 is independently H, oxo, C 1-4 alkyl, F, Cl, Br, amino, hydroxy, C 1-4 alkoxy, C 1-4 haloalkyl, H-(C(R 3) 2) n -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n1 -C(=O)-(C(R 3) 2) n -, H-(C(R 3) 2) n -O-(C(R 3) 2) n -, C 2-9 heterocyclyl or C 3-9 cycloalkyl.