The Israelites served Eglon king of Moab 18 years. 