He did many things that Yahweh considered to be evil. He refused to turn away from worshiping idols, which was the sin that many years earlier King Jeroboam had told the Israeli people to commit.