The present invention discloses a piperazine (piperidine) cyclohexyl derivative and applications of the piperazine (piperidine) cyclohexyl derivative in treatment of neuropsychiatric diseases. According to the present invention, the pharmacological experiment results show that the piperazine (piperidine) cyclohexyl derivative provides high affinity with a dopamine D2 receptor, a dopamine D3 receptor, a serotonin 5-HT1A receptor and a serotonin 5-HT2A receptor, provides good D3/D2 receptor selectivity and good 5-HT1A/5-HT2A receptor selectivity, and provides low affinity with alpha receptor; the in vivo test results show that the preferred compound has characteristics of good anti-schizophrenia effect, good pharmacokinetic property, low side effect, low acute toxicity and high safety, and has the development value of being adopted as the novel efficient and low-toxic anti-neuropsychiatric disease; and the piperazine (piperidine) cyclohexyl derivative is a compound represented by the structural general formula (I), or a geometric isomer, an optical isomer, a salt, a hydrate or a solvate thereof. The formula (I) is defined in the specification.