An object of the present invention is to provide a compound having a modulating activity at an S1P receptor which is useful for preventing and treating autoimmune diseases, allergic diseases, and the like. According to the present invention, a compound represented by formula (I) or a pharmaceutically acceptable salt thereof is provided. [Compound 1]