The invention particularly relates to a method for preparing a foam ceramic by using industrial and mining, building and sludge residue as raw materials, and belongs to the technical field of environmental-protection foam ceramics, wherein protein foaming agent preparing, foam slurry preparing, molding and curing, high-temperature sintering, and detecting and packaging are performed to prepare thefoam ceramic. According to the present invention, the molded and cured foam slurry is conveyed to the tunnel kiln using liquefied petroleum gas as the fuel, and then enters the high temperature section through the sintering device, such that the two composite heating modes are innovatively connected in series so as to save the energy consumption or the fuel cost by 15-30%, and the technical problem that heavy metals, dioxins, and other organic pollutants cannot be completely removed during the combustion of industrial and mining, building and sludge residue is fundamentally solved; and the foam ceramic prepared through the method is the novel building material, and can have excellent performances of hydrophobicity, fire resistance, sound resistance, heat insulation, high compressive strength, acid resistance, alkali resistance, no aging, less deformation and the like according to the opened and closed gaps of the foam.