The Israelites served King Eglon of Moab eighteen years.