The present invention relates to substituted 4-phenyl-1-piperazinyl
derivatives having the formula I ##STR00001## wherein W is C, CH or N,
and the dotted line emanating from W indicates a bond when W is C and no
bond when W is N or CH; X is CH.sub.2, O, S, CO, CS, SO or SO.sub.2; and
Q is a group of formula ##STR00002## wherein Z is a chain of 3 to 4
chain members; wherein the chain members are selected from C, CH,
CH.sub.2, CO, N and NH, provided that only one of the chain members may
be N or NH, and said chain optionally containing one or two double bonds;
provided that X is not O or S when the group Q is attached via an N atom;
and any of its enantiomers and acid addition salts thereof. These
compounds have high affinity for D.sub.4 receptors.