After this, Joshua, accompanied by all of Israel, proceeded from Lachish to Eglon, laid siege to it, and attacked it. 