A compound of Formula I : or a pharmaceutically acceptable salt, ester, hydrate, or solvate thereof, wherein, Z is N; Q is selected from C and N; A is O, S, or NR a ; W is linear or branched C 1-6 alkylene; X is C 6-12 aryl, C 6-12 heteroaryl, 3-10 membered saturated or unsaturated cycloalkyl, 3-10 membered saturated or unsaturated heterocycloalkyl; Y is halo, cyano, C 1-12 alkyl, C 6-12 aryl, C 1-12 alkoxyl, C 6-12 aryloxyl, 3-10 membered saturated or unsaturated cycloalkyl, 3-10 membered saturated or unsaturated heterocycloalkyl, cycloalkylalkyl, heterocycloalkylalkyl,-C(O)OR b , -C(O)NR c R d , which can be optionally mono- or independently multi- substituted by one or more of halogen, hydroxyl, cyano, C 1-12 alkyl, C 2-12 alkenyl, C 2-12 alkynyl, C 5-10 aryl, C 1-12 alkoxy, 3-10 membered saturated or unsaturated cycloalkyl, 3-10 membered heterocycloalkyl, or 3-10 membered heteroaryl, C 5-10 aryloxyl; R 1 is C 1-12 alkyl, 3-10 membered saturated or unsaturated cycloalkyl, aralkyl, alkoxyalkyl, hydroxyalkyl, alkoxyaralkyl , or -NR e R f ; R 2 is hydrogen, -NR g R h , -C(O)OR b , or -C(O)NR c R d ; R a , R b , R c , R d , R e , R f , R g and R h are independently selected from hydrogen, C 1-12 alkyl, 3-10 membered saturated or unsaturated cycloalkyl, C 6-12 aryl, which can be optionally mono- or independently multi-substituted by halogen, hydroxyl, cyano, C 1-12 alkyl, C 2-12 alkenyl, C 2-12 alkynyl, C 5-10 aryl, C 1-12 alkoxy, 3-10 membered saturated or unsaturated cycloalkyl, 3-10 membered heterocycloalkyl, or 3-10 membered heteroaryl, C 5-10 aryloxyl; optionally R c and R d are taken together with the nitrogen atom to which they are bound to form a 4- to 8-membered heterocyclyl optionally comprising one or more additional heteroatoms selected from N, S, and O, optionally R g and R h are taken together with the nitrogen atom to which they are bound to form a 4- to 8-membered heterocyclyl optionally comprising one or more additional heteroatoms selected from N, S, and O; n is 0, 1 or 2. Z is N; Q is selected from C and N; A is O, S, or NR a ; W is linear or branched C 1-6 alkylene; X is C 6-12 aryl, C 6-12 heteroaryl, 3-10 membered saturated or unsaturated cycloalkyl, 3-10 membered saturated or unsaturated heterocycloalkyl; Y is halo, cyano, C 1-12 alkyl, C 6-12 aryl, C 1-12 alkoxyl, C 6-12 aryloxyl, 3-10 membered saturated or unsaturated cycloalkyl, 3-10 membered saturated or unsaturated heterocycloalkyl, cycloalkylalkyl, heterocycloalkylalkyl,-C(O)OR b , -C(O)NR c R d , which can be optionally mono- or independently multi- substituted by one or more of halogen, hydroxyl, cyano, C 1-12 alkyl, C 2-12 alkenyl, C 2-12 alkynyl, C 5-10 aryl, C 1-12 alkoxy, 3-10 membered saturated or unsaturated cycloalkyl, 3-10 membered heterocycloalkyl, or 3-10 membered heteroaryl, C 5-10 aryloxyl; R 1 is C 1-12 alkyl, 3-10 membered saturated or unsaturated cycloalkyl, aralkyl, alkoxyalkyl, hydroxyalkyl, alkoxyaralkyl , or -NR e R f ; R 2 is hydrogen, -NR g R h , -C(O)OR b , or -C(O)NR c R d ; R a , R b , R c , R d , R e , R f , R g and R h are independently selected from hydrogen, C 1-12 alkyl, 3-10 membered saturated or unsaturated cycloalkyl, C 6-12 aryl, which can be optionally mono- or independently multi-substituted by halogen, hydroxyl, cyano, C 1-12 alkyl, C 2-12 alkenyl, C 2-12 alkynyl, C 5-10 aryl, C 1-12 alkoxy, 3-10 membered saturated or unsaturated cycloalkyl, 3-10 membered heterocycloalkyl, or 3-10 membered heteroaryl, C 5-10 aryloxyl; optionally R c and R d are taken together with the nitrogen atom to which they are bound to form a 4- to 8-membered heterocyclyl optionally comprising one or more additional heteroatoms selected from N, S, and O, optionally R g and R h are taken together with the nitrogen atom to which they are bound to form a 4- to 8-membered heterocyclyl optionally comprising one or more additional heteroatoms selected from N, S, and O; n is 0, 1 or 2. <EOS>