The physical or chemical entrapment of toxic heavy metals within a solid matrix to prevent their release into the surrounding ecosystem. It is a fundamental safety objective in the treatment of municipal solid waste incineration residues.