He did many things that Yahweh considered to be evil. He imitated the disgusting things that were formerly done by the people-groups that Yahweh had expelled from Israel as his people advanced though the land.