The invention discloses a preparation method for a flame retardant super-hydrophobic melamine sponge. The method comprises the steps that firstly silicon dioxide particles are put into a trismetyl aminomethane buffer solution with a pH value of 7.8, ultrasound treatment is carried out for 20-60 minutes, standing is carried out for 15 minutes at the indoor temperature, and then a gallotannic acid solution and a silver nitrate solution are added in sequence to obtain a mixed solution; a melamine sponge is immersed in the mixed solution, taken out after the mixed solution is stirred for 2 hours at the indoor temperature, and washed by deionized water and ethyl alcohol for several times to obtain a melamine sponge of which the surface has a micro-nano structure; finally, the melamine sponge isput into an ethyl alcohol solution which has volume concentration of 1:500-10000 and contains 1H, 1H, 2H, 2H-perfluorododecane mercaptan, stirring is carried out for 12 hours at the indoor temperature, the melamine sponge is taken out, washed by ethyl alcohol for several times and dried to obtain the super-hydrophobic melamine sponge of which water contact angle is larger than or equal to 145 degrees. The preparation method for the flame retardant super-hydrophobic melamine sponge has the advantages that the preparation process is simple and convenient, the conditions are mild, and the adjustment and control of hydrophobic performance of the super-hydrophobic melamine sponge can be achieved by changing the concentration of a 1H, 1H, 2H, 2H-perfluorododecane mercaptan solution during the preparation.