Compounds of formula (I) defined herein exhibit VAP-1 inhibitory activity, and as a result, are useful for preventing and/or treating VAP-1-related diseases, in particular, diabetic nephropathy or diabetic macular edema, thereby completing the present invention.