The Israelites did things that the Lord saw as evil, and the Lord handed them over to the Midianites for seven years.