A compound of the following formula, or the optical isomers, pharmaceutically acceptable salts, deuterated derivatives, hydrates, or solvates thereof: wherein M is a group shown the following formula: and the formula is selected from the group consisting of formula (IIb), (IIc), or (IId): in formula and formula: " " represents the attachment site of formula (IIb), (IIc) or (IId) to U in formula; " ∗ " indicates a chiral center; A is independently selected from group consisting of wherein " ∗∗ " means connecting to U; " ∗∗∗ " means connecting to B; U is NR d; B is independently selected from group consisting of: wherein " " means connecting to A;R 1 and R 2 are each independently selected from the group consisting of hydrogen, halogen, C 1-4 alkyl, C 3-6 cycloalkyl, 3- to 8-membered heterocyclic, or C NR e R e; wherein the alkyl, cycloalkyl, and heterocyclic can be optionally substituted with one or more R c; each R c is independently halogen, C 1-4 alkyl, C 3-8 cycloalkyl, 3- to 8-membered heterocyclic, C NR e R e, NR e C R e, OR e, CN, or SO 2 NR e R e; R d is hydrogen or C 1-4 alkyl; each R e is independently selected from the group consisting of hydrogen, C 1-4 alkyl, C 1-4 haloalkyl, C 2-4 alkenyl, C 2-4 alkynyl, C 3-8 cycloalkyl, 3- to 8-membered heterocyclic, aryl, or heteroaryl; or two R e together with the nitrogen atom to which they are attached form 3- to 8-membered heterocyclic containing 1 or 2 N atoms, and 0 or 1 hetero atom selected from O and S; R f is hydrogen, C 1-8 alkyl, C 1-8 haloalkyl, C 2-8 alkenyl, C 2-8 alkynyl, C 3-8 cycloalkyl, 3-to 12-membered heterocyclic, aryl, heteroaryl, C R e, C OR e, C NR e R e, S 2 R e, or S 2 NR h R h; each R h is independently hydrogen or C 1-4 alkyl; or two R h together with the nitrogen atom to which they are attached form 3- to-membered cyclic structure; wherein each of the above alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclic, cyclic structure, aryl and heteroaryl is optionally and independently substituted by 1 to 3 substituents each independently selected from the group consisting halogen, C 1-4 alkyl, C 1-4 haloalkyl, C 2-4 alkenyl, C 2-4 alkynyl, C 3-8 cycloalkyl, 3- to 12-membered heterocyclic, aryl, heteroaryl, CN, NO 2, OR e, SR e, NR e R e, C R e, C OR e, C NR e R e, NR e C R e, or S 2 R e, provided that the chemical structure formed is stable and meaningful; unless otherwise specified, the aryl is aromatic groups having 6 to 12 carbon atoms; the heteroaryl is 5- to 15-membered heteroaromatic groups; and the cyclic structure is saturated or unsaturated cyclic groups with or without heteroatoms. " " represents the attachment site of formula (IIb), (IIc) or (IId) to U in formula; " ∗ " indicates a chiral center; A is independently selected from group consisting of wherein " ∗∗ " means connecting to U; " ∗∗∗ " means connecting to B; U is NR d; B is independently selected from group consisting of: wherein " " means connecting to A;R 1 and R 2 are each independently selected from the group consisting of hydrogen, halogen, C 1-4 alkyl, C 3-6 cycloalkyl, 3- to 8-membered heterocyclic, or C NR e R e; wherein the alkyl, cycloalkyl, and heterocyclic can be optionally substituted with one or more R c; each R c is independently halogen, C 1-4 alkyl, C 3-8 cycloalkyl, 3- to 8-membered heterocyclic, C NR e R e, NR e C R e, OR e, CN, or SO 2 NR e R e; R d is hydrogen or C 1-4 alkyl; each R e is independently selected from the group consisting of hydrogen, C 1-4 alkyl, C 1-4 haloalkyl, C 2-4 alkenyl, C 2-4 alkynyl, C 3-8 cycloalkyl, 3- to 8-membered heterocyclic, aryl, or heteroaryl; or two R e together with the nitrogen atom to which they are attached form 3- to 8-membered heterocyclic containing 1 or 2 N atoms, and 0 or 1 hetero atom selected from O and S; R f is hydrogen, C 1-8 alkyl, C 1-8 haloalkyl, C 2-8 alkenyl, C 2-8 alkynyl, C 3-8 cycloalkyl, 3-to 12-membered heterocyclic, aryl, heteroaryl, C R e, C OR e, C NR e R e, S 2 R e, or S 2 NR h R h; each R h is independently hydrogen or C 1-4 alkyl; or two R h together with the nitrogen atom to which they are attached form 3- to-membered cyclic structure; wherein each of the above alkyl, alkenyl, alkynyl, cycloalkyl, heterocyclic, cyclic structure, aryl and heteroaryl is optionally and independently substituted by 1 to 3 substituents each independently selected from the group consisting halogen, C 1-4 alkyl, C 1-4 haloalkyl, C 2-4 alkenyl, C 2-4 alkynyl, C 3-8 cycloalkyl, 3- to 12-membered heterocyclic, aryl, heteroaryl, CN, NO 2, OR e, SR e, NR e R e, C R e, C OR e, C NR e R e, NR e C R e, or S 2 R e, provided that the chemical structure formed is stable and meaningful; unless otherwise specified, the aryl is aromatic groups having 6 to 12 carbon atoms; the heteroaryl is 5- to 15-membered heteroaromatic groups; and the cyclic structure is saturated or unsaturated cyclic groups with or without heteroatoms.