The Israelites did evil in the eyes of the Lord, and for seven years he gave them into the hands of the Midianites. Because the power of Midian was so oppressive, the Israelites prepared shelters for themselves in mountain clefts, caves and strongholds. Whenever the Israelites planted their crops, the Midianites, Amalekites and other eastern peoples invaded the country. They camped on the land and ruined the crops all the way to Gaza and did not spare a living thing for Israel, neither sheep nor cattle nor donkeys. They came up with their livestock and their tents like swarms of locusts. It was impossible to count them or their camels; they invaded the land to ravage it. Midian so impoverished the Israelites that they cried out to the Lord for help.