A process for the aftertreatment of exhaust gases and arrangement for this purpose