The invention relates to a method for preparing building materials by virtue of 
sludge pyrolyzation. The method comprises the following steps: (1) 
drying sludge in a 
solar greenhouse; (2) sending the 
sludge processed in the step (1) into a 
drying chamber, 
drying the sludge by virtue of any heat source (preferable 
flue gas of a 
system), sending the sludge into a pyrolyzation chamber, pyrolyzing the sludge so as to produce 
combustible gas and sludge carbon, introducing 
combustible gas into a 
combustion chamber for 
combustion, introducing high temperature 
flue gas produced during the 
combustion into the drying chamber to preheat and dry the sludge, introducing 
exhaust gas produced during drying and cooled 
flue gas into gas purifying equipment, and discharging 
exhaust gas and 
flue gas into a 
chimney after purification; (3) sending high temperature sludge carbon prepared in the step (2) into a 
cooling chamber, cooling, and breaking cooled sludge carbon into particles with the particle sizes less than 20mm in a breaking 
machine; and (4) stirring the following 
mixed materials in parts by weight, molding by 
casting in a mold, carrying out natural drying and maintenance in the mold, removing the mold, and drying. By preparing the building materials from the sludge, the cost is lowered, the land source is saved, and the 
pollution problem caused by the sludge to surrounding environments is solved.