Melamine resin, or melamine formaldehyde, is a hard, highly durable, and versatile thermosetting aminoplast known best for its resistance to heat and fire. The resin achieves this flame-retardance by releasing nitrogen gas when burned, helping to put itself out.