So Midian was subdued before the Israelites, and they were no longer a threat. The land was peaceful 40 years during the days of Gideon.