The invention relates to a triphenyl borate modified melamine flame-retardant and sound-absorption foam material for cranes. The foam material is characterized by being prepared from the following raw materials in parts by weight: melamine, a 37% formaldehyde solution, paraformaldehyde, ammonium polyphosphate, aluminum oxide, zinc borate, polyethylene glycol, 1,4-butanediol, 1,1-bis(t-butylperoxy)cyclohexane, diisopropyl disulfide xanthate, vinyl acetate, toluene, ethanol, sodium ethoxide, 4-hydroxybenzohydrazide, chloroform, cupric chloride, n-pentane, phosphoric acid, triethylhexyl phosphoric acid, a hydrochloric acid solution with a pH value equal to 1-2, a proper amount of hexamethylenetetramine and a proper amount of water. The foam material provided by the invention has excellent flame retardance and good sound absorption capacity, and the noise can be reduced by above 10dB.