The large demand for cyanides for mining operations in the 1890s was met by George Thomas Beilby, who patented a method to produce hydrogen cyanide by passing ammonia over glowing coal in 1892. This method was used until Hamilton Castner in 1894 developed a synthesis starting from coal, ammonia, and sodium yielding sodium cyanide, which reacts with acid to form gaseous HCN.