And he did that which was evil in the sight of the LORD, after the abominations of the heathen, whom the LORD cast out before the children of Israel.
He did what was wrong, like the bad things other non-believers did, and God didn't like it because he wanted the Israelites to follow his ways.