N-Alkylation of 2-chlorobenzimidazole (I) with benzyl bromide (II) by means of NaH in DMF provides benzylated derivative (III), which is converted into the desired compound by heating with piperazine (IV).