The present invention aims to provide novel compounds of formula [I] or pharmaceutically acceptable salts thereof that are based on a glycine uptake inhibiting action and which are useful in the prevention or treatment of such diseases as schizophrenia, Alzheimer's disease, cognitive dysfunction, dementia, anxiety disorders (generalized anxiety disorder, panic disorder, obsessive-compulsive disorder, social anxiety disorder, posttraumatic stress disorder, specific phobia, acute stress disorder, etc.), depression, drug addiction, spasm, tremor, pain, and sleep disorder: