In his reform, king Josiah first attacked the worship of Canaanite gods such as Baal and Ashera. He wanted to restore the worship of Yahweh, the God of Israel, and eliminate all forms of idolatry from the land. This included destroying altars, idols, and shrines dedicated to these false gods.