A compound of Formula, or a tautomer thereof, wherein: X is N, Y is CR 3, and Z is CR 3; or X is CR 3, Y is CR 3, and Z is N; or X is CR 3, Y is N, and Z is CR 3; R 1 is -H, -CN, -OR a, C 1-6 haloalkyl, or halogen; R 2 is -H, -NR a R b, -OR a, or C 1-10 alkyl which is optionally substituted with 1, 2, 3, 4 or 5 R 20 groups, which may be the same or different; each R 3 is independently -H, -OR a, halogen, -NR a R b, -C OR a, -CN, - NHC NR a R b, -OC NR a R b, -CH 2 C NR a R b, C 1-10 alkyl optionally substituted with 1, 2, 3, 4 or 5 R 20 groups which may be the same or different, or C 1-10 heteroalkyl optionally substituted with 1, 2, 3, 4 or 5 R 20 groups, which may be the same or different; R 4 and R 5 are independently halogen, -OR a, or C 1-10 alkyl optionally substituted with 1, 2, 3, 4 or 5 R 20 groups, which may be the same or different; each R 6 is independently halogen, -OR a, or C 1-10 alkyl optionally substituted with 1, 2, 3, 4 or 5 R 20 groups, which may be the same or different; n is an integer from 0 to 4; each R 20 is independently C 1-10 alkyl, C 1-10 heteroalkyl, aryl, heteroaryl, halogen,-OR a, -C R a, -C OR a, -C NR a R b, -OC NR a R b, -NR a C OR b, - S 0-2 R a, -S 2 F, -S 2 NR a R b, -NR a S 2 R b, -N 3, -CN, or -NO 2, wherein each C 1-10 alkyl, C 1-10 heteroalkyl, aryl, or heteroaryl is optionally substituted with 1, 2, 3, 4 or 5 halogen, -OR a, -C R a, -C OR a,-C NR a R b, -OC NR a R b, -NR a C OR b, -S 0-2 R a, -S 2F,-S 2 NR a R b, -NR a S 2 R b, -N 3, -CN, or -NO 2 groups, which may be the same or different; each R a and R b is independently -H, -NH 2, C 1-10 alkyl, C 1-10 heteroalkyl, aryl, or heteroaryl, each of which is optionally substituted with 1, 2, 3, 4 or 5 R 21 groups, which may be the same or different; or R a and R b together with the atoms to which they are attached form a C 1-10 heterocycloalkyl; and R 21 is C 1-6 alkyl, -CN, aryl, heteroaryl, or halogen; or a pharmaceutically acceptable salt thereof. X is N, Y is CR 3, and Z is CR 3; or X is CR 3, Y is CR 3, and Z is N; or X is CR 3, Y is N, and Z is CR 3; R 1 is -H, -CN, -OR a, C 1-6 haloalkyl, or halogen; R 2 is -H, -NR a R b, -OR a, or C 1-10 alkyl which is optionally substituted with 1, 2, 3, 4 or 5 R 20 groups, which may be the same or different; each R 3 is independently -H, -OR a, halogen, -NR a R b, -C OR a, -CN, - NHC NR a R b, -OC NR a R b, -CH 2 C NR a R b, C 1-10 alkyl optionally substituted with 1, 2, 3, 4 or 5 R 20 groups which may be the same or different, or C 1-10 heteroalkyl optionally substituted with 1, 2, 3, 4 or 5 R 20 groups, which may be the same or different; R 4 and R 5 are independently halogen, -OR a, or C 1-10 alkyl optionally substituted with 1, 2, 3, 4 or 5 R 20 groups, which may be the same or different; each R 6 is independently halogen, -OR a, or C 1-10 alkyl optionally substituted with 1, 2, 3, 4 or 5 R 20 groups, which may be the same or different; n is an integer from 0 to 4; each R 20 is independently C 1-10 alkyl, C 1-10 heteroalkyl, aryl, heteroaryl, halogen,-OR a, -C R a, -C OR a, -C NR a R b, -OC NR a R b, -NR a C OR b, - S 0-2 R a, -S 2 F, -S 2 NR a R b, -NR a S 2 R b, -N 3, -CN, or -NO 2, wherein each C 1-10 alkyl, C 1-10 heteroalkyl, aryl, or heteroaryl is optionally substituted with 1, 2, 3, 4 or 5 halogen, -OR a, -C R a, -C OR a,-C NR a R b, -OC NR a R b, -NR a C OR b, -S 0-2 R a, -S 2F,-S 2 NR a R b, -NR a S 2 R b, -N 3, -CN, or -NO 2 groups, which may be the same or different; each R a and R b is independently -H, -NH 2, C 1-10 alkyl, C 1-10 heteroalkyl, aryl, or heteroaryl, each of which is optionally substituted with 1, 2, 3, 4 or 5 R 21 groups, which may be the same or different; or R a and R b together with the atoms to which they are attached form a C 1-10 heterocycloalkyl; and R 21 is C 1-6 alkyl, -CN, aryl, heteroaryl, or halogen;