וַיִּֽטַּהֲר֔וּ הַכֹּהֲנִ֖ים וְהַלְוִיִּ֑ם וַֽיְטַהֲרוּ֙ אֶת־הָעָ֔ם וְאֶת־הַשְּׁעָרִ֖ים וְאֶֽת־הַחוֹמָֽה׃
And the priests and the Levites purified themselves; and they purified the people, and the gates, and the wall.
Rashi on Nehemiah
purified themselves First they purified themselves, and afterwards they purified the others.
Rashi on Nehemiah
and the gates and the wall that there should be no uncleanliness in the city.