Provided is a compound of formula (I) or a pharmaceutically acceptable salt thereof, wherein X is selected from a 3-9 membered carbon ring or its phenyl ring, and a 4-10 membered heterocyclic ring or its benzo ring Y and Z are independently selected from 4-9 membered saturated heterocyclic rings respectively R I-3 are independently selected from H, F, Cl, Br, I, CN, OH, SH,NH 2 , CHO, COOH respectively, or selected from C 1-10 alkyls or heteroalkyls optionally substituted by R 01 , C 3-10 alkyls ring hydrocarbon groups or heterocyclic hydrocarbon groups, C 1-10 alkyls or heteroalkyls substituted by C 3-10 ring hydrocarbon groups or heterocyclic hydrocarbon group. The compound can be used as an anticoagulant for treating and preventing thrombotic disorders, and can meet the real needs of selectivity and a potent inhibitor for coagulation Xa.