A compound of formula: or pharmaceutically acceptable salts or hydrates thereof, wherein: A and B are each independently selected from the group consisting of C3-C6 carbon ring, benzene ring, and 5- or 6-membered heteroaromatic ring having one or more O, N, S atoms, wherein A and B can be optionally substituted by 1 to 3 R 5 substituents; Cis a substituted or unsubstituted ring selected from the group consisting of a 4-7 membered saturated heterocyclic ring, wherein the heterocyclic ring comprises one or more heteroatoms selected from O; Xis -S-; Y is absent, or a group selected from the group consisting of -CH 2 -, -O-, -S-, -SO-, -SO 2 -, and -N(R 8)-; B 1 and B 2 are groups each independently selected from the group consisting of absent, C1-C6 alkylene, C2-C6 alkenylene, C2-C6 alkynylene; and B 1, B 2 and Y are not absent at the same time; R 1 is one or more group selected from the group consisting of H, C1-C6 alkyl, halogen, nitro, -N(R 9)(R 10), -OH, -CN, C1-C6 haloalkyl, C1-C6 alkoxy, and C1-C6 haloalkoxy; R 2 and R 3 are each independently selected from the group consisting of H, halogen, C1-C6 alkyl, C1-C6 haloalkyl, and C3-C6 cycloalkyl; or R 2, R 3 together with the carbon atom to which they are attached form 3 to 6 membered ring, which is carbon ring or heterocyclic ring including 1 to 3 heteroatoms selected from O, S or N(R 11); R 4 is -COOR 12, R 5 is selected from: H, halogen, C1-C6 alkyl, C1-C6 haloalkyl, C3-C6 cycloalkyl, and C1-C6 alkoxy; R 12 is selected from the group consisting of H and C1-C6 alkyl; R 8, R 9, R 10 and R 11 are each independently selected from: H, C1-C6 alkyl, C1-C6 haloalkyl, C3-C6 cycloalkyl, C3-C6 halocycloalkyl, C6-C10 aryl, 5- or 6- membered heteroaryl,, and unless otherwise specified, one or more hydrogen atoms of the substituted groups are substituted with substituent(s) selected from the group consisting of F, Cl, Br, I, hydroxyl, methyl, ethyl, isopropyl, methoxy, ethoxy, trifluoromethyl, difluoromethoxy, trifluoromethoxy, nitro, -CN, oxo (= O); R 13 and R 14 are each independently selected from: H, C1-C6 alkyl, C6-C10 aryl, C1-C6 alkylene, and -C6-C10 aryl. A and B are each independently selected from the group consisting of C3-C6 carbon ring, benzene ring, and 5- or 6-membered heteroaromatic ring having one or more O, N, S atoms, wherein A and B can be optionally substituted by 1 to 3 R 5 substituents; Cis a substituted or unsubstituted ring selected from the group consisting of a 4-7 membered saturated heterocyclic ring, wherein the heterocyclic ring comprises one or more heteroatoms selected from O; Xis -S-; Y is absent, or a group selected from the group consisting of -CH 2 -, -O-, -S-, -SO-, -SO 2 -, and -N(R 8)-; B 1 and B 2 are groups each independently selected from the group consisting of absent, C1-C6 alkylene, C2-C6 alkenylene, C2-C6 alkynylene; and B 1, B 2 and Y are not absent at the same time; R 1 is one or more group selected from the group consisting of H, C1-C6 alkyl, halogen, nitro, -N(R 9)(R 10), -OH, -CN, C1-C6 haloalkyl, C1-C6 alkoxy, and C1-C6 haloalkoxy; R 2 and R 3 are each independently selected from the group consisting of H, halogen, C1-C6 alkyl, C1-C6 haloalkyl, and C3-C6 cycloalkyl; or R 2, R 3 together with the carbon atom to which they are attached form 3 to 6 membered ring, which is carbon ring or heterocyclic ring including 1 to 3 heteroatoms selected from O, S or N(R 11); R 4 is -COOR 12, R 5 is selected from: H, halogen, C1-C6 alkyl, C1-C6 haloalkyl, C3-C6 cycloalkyl, and C1-C6 alkoxy; R 12 is selected from the group consisting of H and C1-C6 alkyl; R 8, R 9, R 10 and R 11 are each independently selected from: H, C1-C6 alkyl, C1-C6 haloalkyl, C3-C6 cycloalkyl, C3-C6 halocycloalkyl, C6-C10 aryl, 5- or 6- membered heteroaryl,, and unless otherwise specified, one or more hydrogen atoms of the substituted groups are substituted with substituent(s) selected from the group consisting of F, Cl, Br, I, hydroxyl, methyl, ethyl, isopropyl, methoxy, ethoxy, trifluoromethyl, difluoromethoxy, trifluoromethoxy, nitro, -CN, oxo (= O); R 13 and R 14 are each independently selected from: H, C1-C6 alkyl, C6-C10 aryl, C1-C6 alkylene, and -C6-C10 aryl.