A nicotinic acid derivative is represented by formula (I), and a pharmaceutically acceptable salt or solvate thereof.In formula (I), Z is selected from O, S, NR3, wherein R3 is hydrogen or C1-6 alkyl. R1 or R2 is independently selected from the group consisting of hydrogen, C1-6 alkyl, C1-6 alkoxy, halo C1-6 alkyl, halogen, cyano, nitro, aryl, aryloxy, heteroaryl, heteroaryloxy, heterocyclyl, and heterocyclyloxy. Such C1-6 alkyl, C1-6 alkoxy, halo C1-6 alkyl, aryl, heteroaryl, and heterocyclyl may be optionally substituted with a substituent selected from the group consisting of C1-6 alkyl, C1-6 alkoxy, halo C1-6 alkyl, halogen, cyano, nitro, and aryl. These compounds or salts thereof have a strong inhibitory activity on colorectal cancer cell line HCT-116, human lung cancer cell line A549, and breast cancer cell line MCF-7.