The present invention relates to therapeutically active azaheterocyclic compounds, a method of preparing the same and to pharmaceutical compositions comprising the compounds. The novel compounds are useful in treating a central nervous system ailment related to the GABA uptake.