When Solomon was old, his wives seduced him to follow other gods. He was not completely devoted to Yahweh his God, as his father David had been.