Benzo[d]thiazole-2-carbonitrile and the related derivatives are important compounds with applications in a variety of chemical fields. In this paper, electrochemically oxidative cyanation of benzothiazole and their derivatives was successfully achieved by using trimethylsilyl cyanide as a cyanide source in n-Bu4NBF4/DMF in the divided cell, in which the corresponding products were obtained in moderate yields. The extensive reaction optimization as well as scope and limitations were investigated in this paper.