The present invention provides a novel compound having NPY Y5 antagonistic effect, which is represented by the following formula, and salts or solvates thereof.formula (I):(wherein, R1 and R2 each independently represents hydrogen, substituted or unsubstituted alkyl, substituted or unsubstituted alkoxy, substituted or unsubstituted cycloalkyl, substituted or unsubstituted aryl, substituted or unsubstituted heteroaryl, substituted or unsubstituted heterocyclic group R1 and R2 can be taken together with attached nitrogen atom thereof to form substituted or unsubstituted nitrogen-containing aromatic heterocycle or substituted or unsubstituted nitrogen-containing non-aromatic heterocycle X is aromatic heterocycle or non-aromatic heterocycle R3 each independently represents substituted or unsubstituted aryl, substituted or unsubstituted heteroaryl, or substituted or unsubstituted heterocyclic group R4 each independently represents halogen, cyano, nitro, nitroso, amide, oxo, substituted or unsubstituted alkyl, substituted or unsubstituted cycloalkyl, hydroxyl, substituted or unsubstituted alkoxy and the like R5 is hydrogen, substituted or unsubstituted alkyl and the like m is an integer of 0~2 n is an integer of 0~5 R each independently represents halogen, oxo, cyano, nitro, substituted or unsubstituted alkyl and the like P is an integer of 0~2].本發明提供一種新穎之化合物,其具有NPY Y5受體拮抗作用,為如下式所示之化合物、其製藥上可容許之鹽或此等之溶劑合物,式(I):(式中,R1及R2各自獨立為氫、經取代或未經取代之烷基、經取代或未經取代之烷氧基、經取代或未經取代之環烷基、經取代或未經取代之芳基、經取代或未經取代之雜芳基、經取代或未經取代之雜環基等;R1及R2可與鄰接之氮原子一起形成經取代或未經取代之含氮芳香族雜環或經取代或未經取代之含氮非芳香族雜環;X為芳香族雜環或非芳香族雜環;R3各自獨立為經取代或未經取代之芳基、經取代或未經取代之雜芳基或經取代或未經取代之雜環基;R4各自獨立為鹵素、氰基、硝基、亞硝基、醯胺基、側氧基、經取代或未經取代之烷基、經取代或未經取代之環烷基、羥基、經取代或未經取代之烷氧基等;R5為氫、經取代或未經取代之烷基等;m為0至2之整數;n為0至5之整數;R各自獨立為鹵素、側氧基、氰基、硝基、經取代或未經取代之烷基等;p為0至2之整數)。