He stationed gatekeepers at the gates of the house of Yahweh, so that no one unclean in any way could go in.
In context
17Then all the people went to the house of Baal and pulled it down; they smashed its altars and its images, and they killed Mattan the priest of Baal in front of the altars. 18Jehoiada placed the oversight of the house of Yahweh in the hands of the Levitical priests, whom David had assigned to the house of Yahweh, to offer up the burnt offerings of Yahweh as written in the law of Moses, with rejoicing and with song, as David had arranged it. 19He stationed gatekeepers at the gates of the house of Yahweh, so that no one unclean in any way could go in. 20He took the commanders of hundreds, the nobles, the rulers of the people and all the people of the land, and they brought the king down from the house of Yahweh; they came through the Upper Gate into the king’s house and seated the king on the royal throne. 21All the people of the land rejoiced, and the city was quiet, now that Athaliah had been put to death by the sword.