A compound of Formula III or a pharmaceutically acceptable salt or solvate thereof, wherein R 1 is -C NR 5 R 6; R 5 and R 6 are independently selected from the group consisting of hydrogen, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-6 cycloalkyl, 3- to 6-membered heterocycloalkyl, 5- to 10-membered aryl, and 5- to 10-membered heteroaryl, which are optionally substituted by one or more R a; the group Y is C; W is selected from the group consisting of O, S, CR 7 R 8 and NR 9; R 7 and R 8 are independently selected from the group consisting of hydrogen, -NR 10 R 11, C 1-6 alkyl, C 3-6 cycloalkyl, 5- to 10-membered aryl, and 5- to 10-membered heteroaryl, which are optionally substituted by one or more R a; R 10 and R 11 are independently selected from the group consisting of hydrogen, C 1-6 alkyl, C 3-6 cycloalkyl, 5- to 10-membered aryl, and 5- to 10-membered heteroaryl, which are optionally substituted by one or more R a; R 9 is selected from the group consisting of hydrogen, C 1-6 alkyl, C 3-6 cycloalkyl, 5- to 10-membered aryl, and 5- to 10-membered heteroaryl, which are optionally substituted by one or more R a; and R a is selected from the group consisting of halogen, cyano, -R, -OR, =O, -SR, -NR 2, =NR, -C(halogen) 3, -CR(halogen) 2, -CR 2 (halogen), -OCN, -SCN, -N=C=O, -NCS, -NO, -NO 2, -NRC(=O)R, -NRC(=O)OR, -NRC(=O)NRR, -C(=O)NRR, -C(=O)OR, -OC(=O)NRR, -OC(=O)OR, -C(=O)R, -S(=O) 2 OR, -S(=O) 2 R, -OS(=O) 2 OR, -S(=O) 2 NRR, -S(=O)R, -NRS(=O) 2 R, -NRS(=O) 2 NRR, -NRS(=O) 2 OR, -OP(=O) 2, -P(=O) 2, -C(=O)R, -C(=S)R, -C(=O)OR, -C(=S)OR, -C(=O)SR, -C(=S)SR, -C(=O)NRR, -C(=S)NRR, -C(=NR)NRR and -NRC(=NR)NRR; and R is independently selected from the group consisting of hydrogen, C 1-6 alkyl, C 3-6 cycloalkyl, 3- to 6-membered heterocycloalkyl, 5- to 10-membered aryl and 5- to 10-membered heteroaryl, wherein when R a is -R, R is not hydrogen. R 1 is -C NR 5 R 6; R 5 and R 6 are independently selected from the group consisting of hydrogen, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-6 cycloalkyl, 3- to 6-membered heterocycloalkyl, 5- to 10-membered aryl, and 5- to 10-membered heteroaryl, which are optionally substituted by one or more R a; the group Y is C; W is selected from the group consisting of O, S, CR 7 R 8 and NR 9; R 7 and R 8 are independently selected from the group consisting of hydrogen, -NR 10 R 11, C 1-6 alkyl, C 3-6 cycloalkyl, 5- to 10-membered aryl, and 5- to 10-membered heteroaryl, which are optionally substituted by one or more R a; R 10 and R 11 are independently selected from the group consisting of hydrogen, C 1-6 alkyl, C 3-6 cycloalkyl, 5- to 10-membered aryl, and 5- to 10-membered heteroaryl, which are optionally substituted by one or more R a; R 9 is selected from the group consisting of hydrogen, C 1-6 alkyl, C 3-6 cycloalkyl, 5- to 10-membered aryl, and 5- to 10-membered heteroaryl, which are optionally substituted by one or more R a; and R a is selected from the group consisting of halogen, cyano, -R, -OR, =O, -SR, -NR 2, =NR, -C(halogen) 3, -CR(halogen) 2, -CR 2 (halogen), -OCN, -SCN, -N=C=O, -NCS, -NO, -NO 2, -NRC(=O)R, -NRC(=O)OR, -NRC(=O)NRR, -C(=O)NRR, -C(=O)OR, -OC(=O)NRR, -OC(=O)OR, -C(=O)R, -S(=O) 2 OR, -S(=O) 2 R, -OS(=O) 2 OR, -S(=O) 2 NRR, -S(=O)R, -NRS(=O) 2 R, -NRS(=O) 2 NRR, -NRS(=O) 2 OR, -OP(=O) 2, -P(=O) 2, -C(=O)R, -C(=S)R, -C(=O)OR, -C(=S)OR, -C(=O)SR, -C(=S)SR, -C(=O)NRR, -C(=S)NRR, -C(=NR)NRR and -NRC(=NR)NRR; and R is independently selected from the group consisting of hydrogen, C 1-6 alkyl, C 3-6 cycloalkyl, 3- to 6-membered heterocycloalkyl, 5- to 10-membered aryl and 5- to 10-membered heteroaryl, wherein when R a is -R, R is not hydrogen.