Biguanide can be obtained from the reaction of dicyandiamide with ammonia, via a Pinner-type process.