Cyanohydrins can be formed by the cyanohydrin reaction, which involves treating a ketone or an aldehyde with hydrogen cyanide (HCN) in the presence of excess amounts of sodium cyanide (NaCN) as a catalyst: