N-Benzylguanidine is a useful building block and has been used in the synthesis of novel substituted 2-(2-aminopyrimidin-4-yl) pyridine-4-carboxylates as potent inhibitors of JumonjiC domain-containing histone demethylases in human esophageal squamous cell carcinoma cells.