Then Joshua and his army went west from Lachish to Eglon city. They surrounded the city and attacked it.