Described herein are novel methods of preparing a compound of Formula II or a pharmaceutically acceptable salt thereof. In some embodiments, the method is for preparing betrixaban or a pharmaceutically acceptable salt thereof. Also described are compositions comprising substantially pure betrixaban free base or salt thereof.