The present invention relates to pyrroloquinoline derivatives as antagonists of 5-HT6 receptors, to processes for their preparation and to novel intermediates useful for their synthesis. The invention also relates to the use of such compounds and compositions, especially for the treatment of schizophrenia, anxiety, depression, manic depression, epilepsy, obsessive compulsive disorder, mood disorders, migraine, Alzheimer's disease, age- related cognitive impairment, mild cognitive impairment, Parkinson's disease, Huntington's disease, withdrawal from cocaine, ethanol, nicotine or benzodiazepine abuse, pain, obesity and type 2 diabetes, functional bowel disorder, irritable bowel syndrome, anorexia, bulimia, panic attacks, attention deficit hyperactivity disorder, attention deficit disorder And to their use for administration to patients in order to obtain a therapeutic effect in a patient with a syndrome. The compound has the formula (XIV), and the symbols have the meanings given herein.본 발명은 5-HT6 수용체의 길항제로서 피롤로퀴놀린 유도체, 이들 화합물의 제조 방법 및 이들 합성에 유용한 신규 중간체에 관한 것이다. 또한, 본 발명은 이러한 화합물 및 조성물의 용도, 특히 정신 분열병, 불안, 우울증, 조울증, 간질, 강박장애, 기분장애, 편두통, 알츠하이머병, 나이관련 인지저하, 경도 인지장애, 수면장애, 섭식장애, 식욕부진, 폭식증, 공황발작, 주의력결핍 과다행동장애, 주의력결핍장애, 파킨슨병, 헌팅턴병, 코카인, 에탄올, 니코틴 또는 벤조디아제핀 남용으로 인한 금단증상, 통증, 비만 및 2형 당뇨병, 기능성 장 장애, 과민성 장증후군에서 치료 효과를 얻기 위하여 환자에게 투여하는 이들의 용도에 관한 것이다. 상기 화합물은 화학식 (XIV)를 갖고, 기호는 본원에서 주어진 의미를 갖는다.