The present disclosure provides a deuterium substituted 1-[2-(2,4-dimethyl-phenylsulfanyl)-phenyl]piperazine compound with a structure represented by formula (I) or a derivative thereof, a pharmaceutical composition containing the compound or the derivative thereof, and an application of the compound or the derivative thereof in preparing drugs. The compound can reduce oxidative metabolism thereof, increase the drug concentration in blood and the effective bioavailability, so as to lower the dosage and reduce the toxicity and other side effects. The deuterium 1-[2-(2,4-dimethyl-phenylsulfanyl)-phenyl]piperazine compound and its derivative thereof provided by the present disclosure can be used to treat related diseases such as affective disorders, depression and anxiety.