Disclosed is an anti-coagulant which has extremely excellent inhibitory effect on FXa and an extremely poor inhibitory effect on hERG channel, and can be administered through the oral route. Specifically, disclosed is a compound represented by the formula (I) or a pharmaceutically acceptable salt thereof.