The present invention provides a novel thiazole derivative useful as a VAP-1 inhibitor, a pharmaceutical agent for the prophylaxis or treatment of VAP-1 associated diseases and the like. A compound represented by the formula (I): R1-NH-X-Y-Z (I)wherein each symbol is as defined in the specification, or a pharmaceutically acceptable salt thereof.