Provided is a prophylactic or therapeutic agent for autism spectrum disorder, said agent comprising compound (I) that has affinity to melatonin receptors. A compound represented by formula (I) [wherein the meaning of each symbol is as defined in the description] or a salt thereof.