2-H- and 2-acyl-9- [omega-[4-(2-methoxyphenyl)piperazinyl]-alkyl]-1,2,3,4-tetrahydro-beta-carbolines as ligands of 5-HT1A and 5-HT2A receptors.