He did away with the idolatrous priests, who had been appointed by the previous kings of Judah, for they had offered sacrifices at the pagan shrines throughout Judah and even in the vicinity of Jerusalem. They had also offered sacrifices to Baal, and to the sun, the moon, the constellations, and to all the powers of the heavens.