The invention relates to a ferrocene derivative shown as a formula (IA) or a formula (IB) or a pharmaceutically-acceptable salt or a solvate and a medicinal composition thereof. In the formula, R is independently selected from hydrogen, halogen, a cyano-group, a nitro-group, alkyl with 1 to 6 carbon atoms, alkoxy with 1 to 6 carbon atoms, hydroxyl-alkyl with 1 to 6 carbon atoms, halogenated alkyl with 1 to 6 carbon atoms, halogenated alkoxy with 1 to 6 carbon atoms, or alkoxy with 1 to 6 carbon atoms; Z is selected from O, S or NR1; R1 is hydrogen or alkyl with 1 to 6 carbon atoms independently; n is an integer of 0 to 5. The invention further provides a preparation method and medical application of the compound shown as the formula (IA) or the formula (IB) or the pharmaceutically-acceptable salt thereof. The compound has very high restraining activity specific to a lung cancer cell line A549, a colorectal carcinoma cell line HCT116 and / or a breast cancer cell line MCT-7, has broad-spectrum anti-cancer activity, and can be taken as a candidate compound or a lead compound for treating tumor diseases or cancer diseases. The derivative is shown in the description.