 God allowed Israel's enemies to smite them for adopting the barbaric practices of their pagan neighbors such as child sacrifice, sexual immorality, and idol worship. When they repented as a nation, God restored them.