The present invention provides an SSAO inhibitor and an application thereof in preparing a drug for treating a disease related to SSAO. In particular, the present invention provides a compound shown in formula (IV) and a pharmaceutically acceptable salt thereof.