The Israelites served Eglon king of Moab eighteen years.