When they came to Jerusalem, the priests and other descendants of Levi who help the priests performed rituals to cause themselves to be acceptable to God, and then they performed similar rituals to purify the other people, the gates, and the wall.