This happened because they did not obey the Lord their God. They broke his agreement and did not obey all that Moses, the Lord’s servant, had commanded. They would not listen to the commands or do them.
“Then say to them: ‘This is because your ancestors quit following me,’ says the Lord. ‘And they followed other gods and served and worshiped them. Your ancestors left me and quit obeying my teaching.
They came into this land and took it for their own, but they did not obey you or follow your teachings. They did not do everything you commanded. So you made all these terrible things happen to them.