He abandoned Yahweh, the God whom his ancestors had worshiped, and did not behave as Yahweh wanted him to.