Benzamidine derivatives of the following formulae or analogs thereof, i.e., pharmaceutically acceptable salts thereof, are provided. These compounds or salts thereof have a blood-coagulation inhibiting effect based on an excellent effect of inhibiting the action of activated blood coagulation factor X, and they are useful as anticoagulants