The present invention provides a compound represented by the formula which is useful as an agent for the prophylaxis or treatment of diseases related to the action of melatonin, or a salt thereof and the like.La présente invention concerne un composé représenté par la formule, qui est utile en tant quagent pour la prophylaxie ou le traitement de maladies liées à laction de la mélatonine, ou un sel de celui-ci ou analogue.