The new pyridine, 4‐pyridine N‐oxide and pyrazine derivatives exhibiting an antibacterial activity have been synthesized. Amidoximes were transformed into N‐hydroxyimidoyl chlorides and then into appropriate oximes. Upon treatment of pyridinecaboxamidoximes with methyl iodide 1‐methylpyridynium iodides were formed. Reaction of amidoximes with various carbamoyl chlorides led to corresponding 5‐aminocarbonyl‐1