Provided are: a compound represented by formula (I):(wherein ring A and ring D each represent a cyclic group which may have a
substituent(s); E and G each represent a bond or a spacer having 1 to 8 atoms in its main chain; L represents a
hydrogen atom or a
substituent; X represents amino which may have a
substituent(s), or a heterocyclic group which contains at least one
nitrogen atom and which may have a substituent(s); n represents 0 to 3, in which when n is 2 or more, a plurality of ring A's may be the same or different from one another); a salt thereof; an N-
oxide form thereof; a solvate thereof, a
prodrug thereof; and a medicament which includes those. The compound represented by formula (I) is capable of binding S1P receptors (in particular, EDG-1 and / or EDG-6), and useful for preventing and / or treating rejection in
transplantation, autoimmune diseases, allergic diseases, etc.