Israel repents under Ammonite oppression
Israel again served foreign gods, and the Philistines and Ammonites oppressed them. When the people confessed their sin and removed the foreign gods, the LORD was grieved by their misery as Ammon gathered against Gilead (Judges 10:6-18).
6And again the Israelites did evil in the sight of the LORD. They served the Baals, the Ashtoreths, the gods of Aram, Sidon, and Moab, and the gods of the Ammonites and Philistines. Thus they forsook the LORD and did not serve Him. 7So the anger of the LORD burned against Israel, and He sold them into the hands of the Philistines and Ammonites, 8who that very year harassed and oppressed the Israelites, and did so for eighteen years to all the Israelites on the other side of the Jordan in Gilead, the land of the Amorites.