But the people were unfaithful to the God of their ancestors and deserted him to worship the gods of the nations whom God had driven out of the land.