Mix prepared melamine resin with a foaming agent, heat the mixture so that the liquid foaming agent undergoes phase transformation, releasing a large amount of gas, forming a uniform foam structure. After a period of heating and curing, the foaming process is completed, and the melamine resin turns into a porous foam body, usually large blocks of melamine foam.