The present invention is directed to a novel process for the preparation ofpiperazinyl and diazapanyl benzamide derivatives, useful for the treatment ofdisorders and conditions mediated by a histamine receptor, preferably the H3receptor.(see formula I)