Carbazole derivatives of formula (I), useful in treatment of a CNS disorders related to or affected by the 5-HT6 receptor are described. The pharmacological profile of these compounds includes high affinity binding with 5-HT6 receptor along with good selectivity towards the receptor. Stereoisomers, the salts, methods of preparation and medicines containing the carbazole derivatives are also described.