Calcium carbide reacts with nitrogen at high temperature to form calcium cyanamide:
:CaC + N → CaCN + C
Commonly known as nitrolime, calcium cyanamide is used as fertilizer. It is hydrolysed to cyanamide, HNCN.