The invention discloses a harmless domestic sludge pyrolysis and carbonization treatment technique. The technique includes pre-stage domestic sludge premixing and standing treatment, pre-dehydration, shaping, dehumidification, granulation, pre-reaction, pre-pyrolysis reaction, full carbonization reaction and other treatment processes, the completely reacted solid carbonized matter is discharged out of a system by a discharger, and is then collected and stored, the gas generated in sludge pyrolysis is separated by a gas condensation and separation system, the uncondensed flammable gas is guided into a gas holder and stored as heat source for the system, and the condensed gas is centrally treated by a reclaimed water system. The invention realizes purposes such as harmless and zero discharge in the process of production, energy self-sufficiency and low consumption in the process of production, resource and basic energy substance recycling, energy saving, discharge reduction and natural substance recycling, and has the advantages of easy operation, low investment cost, remarkable economic benefit, significant discharge reduction effect for the environment and the like.