[Problem] To provide an excellent agent for preventing or treating dementia and schizophrenia based on serotonin 5-HT 5A receptor regulating action. [Means for Solution] It was found that a tetrahydroisoquinoline derivative characterized by a structure in which an acylguanidino group binds to a N atom of a tetrahydroisoquinoline ring or the like, and a cyclic group binds to an unsaturated ring has a potent 5-HT 5A receptor regulating action and an excellent pharmacological action based on the regulating action and also discovered that the tetrahydroisoquinoline derivative is useful as an agent for treating or preventing dementia, schizophrenia, and the like, whereby the present invention has been completed.본 발명은, 세로토닌 5-HT5A 수용체 조절 작용에 기초한 인지증 및 통합 실조증의 우수한 예방 또는 치료제를 제공하는 것을 목적으로 한다.테트라히드로이소퀴놀린환 등의 N 원자에 아실구아니디노기가 결합되고, 불포화의 고리에 고리기가 결합된 구조를 특징으로 하는 테트라히드로이소퀴놀린 유도체가, 강력한 5-HT5A 수용체 조절 작용과, 이것에 기초한 우수한 약리 작용을 갖는 것을 발견하고, 인지증, 통합 실조증 등의 예방 또는 치료제로서 유용하다는 것을 지견하여 본 발명을 완성하였다.