A compound of Formula or a pharmaceutically acceptable salt, hydrate or solvate thereof, wherein: is selected from the group consisting of: X is: R 5, R 4 and R 6 are independently selected from H, C 1-12 alkyl, C 1-12 heteroalkyl, C 1-12 heterocycloalkyl, C 2-12 alkenyl, C 2-12 alkynyl, C 3-12 cycloalkyl; L 3 is CH 2, O, S, NR d; R d is H, C 1-6 alkyl, C 3-6 cycloalkyl, aryl or heteroaryl; Ar is an aryl or heteroaryl which is unsubstituted or substituted with one or more R e; R e is independently chosen from halogen, C 1-12 alkyl, C 2-12 alkenyl, C 2-12 alkynyl, C 3-12 cycloalkyl, C 6-12 aryl, a 3-12 membered heteroalicyclic ring, a 5-12 membered heteroaryl ring, -S m R d, -S 2 NR d R d, -S 2 OR d, SF 5, -CN, -NO 2, -NR d R d, -(CR 6 R 7) n OR d,-CN, -C R d, -OC R d, -O(CR d R d) n R d, -NR d C R d, -(CR d R d) n C OR 4,-(CR d R d) n OR 4, -(CR d R d) n C NR d R d, -(CR d R d) n NCR d R d, -C(=NR d)NR d R d,-NR d C NR d R d, -NR d S 2 R d or -C NR d R d, wherein each hydrogen in R d is unsubstituted or substituted by R f; wherein two R d on the same atom are unconnected or connected to form a carbocyclic ring, or two R d on the same atom are unconnected or connected to form a carbocyclic ring in which one or more carbon ring atoms are replaced with one or more O, S, S, S 2, C, C and NR d; n is selected from 1 to 6; R f is independently chosen from halogen, C 1-12 alkyl, C 2-12 alkenyl, C 2-12 alkynyl, C 3-12 cycloalkyl, C 6-12 aryl, a 3-12 membered heteroalicyclic ring, a 5-12 membered heteroaryl ring, -NH 2, -CN, -OH, -O-C 1-12 alkyl, -O-(CH 2) n C 3-12 cycloalkyl, -O-(CH 2) n C 6-12 aryl, -O-(CH 2) n (3-12 membered heteroalicyclic ring) or -O-(CH 2) n (5-12 membered heteroaryl ring); and two R e on adjacent atoms are unconnected or connected to form a C 6-12 aryl ring, a 5-12 membered heteroaryl ring, a C 5-20 cycloalkyl ring or a 5-20 membered heteroalicyclic ring, or two R e on adjacent atoms are unconnected or connectedor combined to form a C 6-12 aryl ring, a 5-12 membered heteroaryl ring, a C 5-20 cycloalkyl ring or a 5-20 membered heteroalicyclic ring which contains one or more heteroatom selected from O, NR d, S. R 5, R 4 and R 6 are independently selected from H, C 1-12 alkyl, C 1-12 heteroalkyl, C 1-12 heterocycloalkyl, C 2-12 alkenyl, C 2-12 alkynyl, C 3-12 cycloalkyl; L 3 is CH 2, O, S, NR d; R d is H, C 1-6 alkyl, C 3-6 cycloalkyl, aryl or heteroaryl; Ar is an aryl or heteroaryl which is unsubstituted or substituted with one or more R e; R e is independently chosen from halogen, C 1-12 alkyl, C 2-12 alkenyl, C 2-12 alkynyl, C 3-12 cycloalkyl, C 6-12 aryl, a 3-12 membered heteroalicyclic ring, a 5-12 membered heteroaryl ring, -S m R d, -S 2 NR d R d, -S 2 OR d, SF 5, -CN, -NO 2, -NR d R d, -(CR 6 R 7) n OR d,-CN, -C R d, -OC R d, -O(CR d R d) n R d, -NR d C R d, -(CR d R d) n C OR 4,-(CR d R d) n OR 4, -(CR d R d) n C NR d R d, -(CR d R d) n NCR d R d, -C(=NR d)NR d R d,-NR d C NR d R d, -NR d S 2 R d or -C NR d R d, wherein each hydrogen in R d is unsubstituted or substituted by R f; wherein two R d on the same atom are unconnected or connected to form a carbocyclic ring, or two R d on the same atom are unconnected or connected to form a carbocyclic ring in which one or more carbon ring atoms are replaced with one or more O, S, S, S 2, C, C and NR d; n is selected from 1 to 6; R f is independently chosen from halogen, C 1-12 alkyl, C 2-12 alkenyl, C 2-12 alkynyl, C 3-12 cycloalkyl, C 6-12 aryl, a 3-12 membered heteroalicyclic ring, a 5-12 membered heteroaryl ring, -NH 2, -CN, -OH, -O-C 1-12 alkyl, -O-(CH 2) n C 3-12 cycloalkyl, -O-(CH 2) n C 6-12 aryl, -O-(CH 2) n (3-12 membered heteroalicyclic ring) or -O-(CH 2) n (5-12 membered heteroaryl ring); and two R e on adjacent atoms are unconnected or connected to form a C 6-12 aryl ring, a 5-12 membered heteroaryl ring, a C 5-20 cycloalkyl ring or a 5-20 membered heteroalicyclic ring, or two R e on adjacent atoms are unconnected or connectedor combined to form a C 6-12 aryl ring, a 5-12 membered heteroaryl ring, a C 5-20 cycloalkyl ring or a 5-20 membered heteroalicyclic ring which contains one or more heteroatom selected from O, NR d, S.