The present invention relates to N-phenyl-(piperazinyl or homopiperazinyl)-benzenesulfonamide or benzenesulfonyl-phenyl-(piperazine or homopiperazine) compounds, pharmaceutical compositions containing them, and their use in therapy. The compounds possess valuable therapeutic properties and are particularly suitable for treating diseases that respond to modulation of the serotonin 5-HT6receptor.wherein X is a bond or a group N-R4; R1 is hydrogen or methyl; R2 is hydrogen or methyl; R3 is hydrogen, C1-C3alkyl, fluorine, C1-C2alkoxy or fluorinated C1-C2alkoxy; R4 is hydrogen, C1-C4alkyl, C3-C4cycloalkyl, or C3-C4cycloalkyl-CH2-; R5 is hydrogen, fluorine, chlorine, C1-C2alkyl, fluorinated C1-C2alkyl, C1-C2alkoxy or fluorinated C1-C2alkoxy; R6 is hydrogen, fluorine or chlorine; and n is 1 or 2.本發明係關於一種N-苯基-(六氫吡基或高六氫吡基)-苯磺醯胺或苯磺醯基-苯基-(六氫吡或高六氫吡)化合物、含有其之醫藥組合物及其用於治療之用途。該等化合物具有有價值之治療特性且尤其適用於治療對血清素5-HT6受體之調節有反應的病症。其中X 為一鍵或基團N-R4;R1 為氫或甲基;R2 為氫或甲基;R3 為氫、C1-C3烷基、氟、C1-C2烷氧基或氟化C1-C2烷氧基;R4 為氫、C1-C4烷基、C3-C4環烷基或C3-C4環烷基-CH2-;R5 為氫、氟、氯、C1-C2烷基、氟化C1-C2烷基、C1-C2烷氧基或氟化C1-C2烷氧基;R6 為氫、氟或氯;及n 為1或2。