Thus the process of selection and cleansing that took place was such that as each individual level emerged from the destruction that had engulfed it, it became fixed as a law in the governmental order whose purpose was no longer to produce evil at all but on the contrary, to contribute to the repair now that evil and destruction already existed. And thus:

...they would turn around to evade it. For even though it had been in their nature to produce it, they were now intent on being repaired through the path of unity and leaving the previous mission behind. And this is the revelation of the perfection that I mentioned above, which constitutes the entire repair of the Sefirot. For since it is revealed gradually, the repair of the Sefirot likewise proceeds gradually. This means that they now returned to the path of unity in order to be repaired, but evil was not nullified. And the truth is that the reason evil was not entirely nullified is that not all the Sefirot were repaired completely in this way, for Malchut remained, as will be discussed below. Certainly, if all the Sefirot had been completely rectified, evil would have had no existence whatever.