The sons of Israel served Eglon the king of Moab eighteen years.