Melamine (C3N3(NH2)3, IUPAC: 1,3,5-Triazine-2,4,6-triamine) is a white crystalline compound made by heating cyanamide that is an organic base and a trimer of cyanamide, used making the melamine resin which is a synthetic resin made from melamine and aldehyde.