God generally punished the sins and infidelities of the Jews by different captivities or servitudes. The first captivity is that of Egypt, from which they were delivered by Moses, and which should be considered rather as a permission of providence, than as a punishment for sin. Six captivities are reckoned during the government by judges: the first, under Chushanrishathaim, king of Mesopotamia, which continued about eight years; the second, under Eglon, king of Moab, from which the Jews were delivered by Ehud; the third, under the Philistines, from which they were rescued by Shamgar; the fourth, under Jabin, king of Hazor, from which they were delivered by Deborah and Barak; the fifth, under the Midianites, from which Gideon freed them; and the sixth, under the Ammonites and Philistines, during the judicatures of Jephthah, Ibzan, Elon, Abdon, Eli, Samson, and Samuel. But the greatest and most remarkable captivities were those of Israel and Judah, under their regal government.