An object of the present invention is to provide an excellent agent for treating or preventing dementia, schizophrenia based on a serotonin 5-HT5A receptor modulating action.It was confirmed that acylguanidine derivatives, which has the characteristic structure in which the guanidine is bonded to one ring of a naphthalene via a carbonyl group and a cyclic group is bonded to the other ring thereof, exhibit potent 5-HT5A receptor modulating action and excellent pharmacological action based on the action. The present invention is useful as an excellent agent for treating or preventing dementia, schizophrenia, bipolar disorder or attention deficit hyperactivity disorder.