The present invention relates to methods for preparing compounds of formula (I): or suitable salts thereof useful as inhibitors of voltage-gated sodium channels and calcium channels. The invention also relates to methods for preparing intermediates related thereto.