N-[omega-(Tetralin-1-yl)alkyl] derivatives of 3,3-dimethylpiperidine are highly potent and selective sigma1 or sigma2 ligands.