1 Then the Lord said to Joshua, Have no fear and do not be troubled: take with you all the fighting-men and go up against Ai: for I have given into your hands the king of Ai and his people and his town and his land:

2 And you are to do to Ai and its king as you did to Jericho and its king: but their goods and their cattle you may take for yourselves: let a secret force be stationed to make a surprise attack on the town from the back.

3 So Joshua and the fighting-men got ready to go up against Ai; and Joshua took thirty thousand men of war, and sent them out by night.

4 And he gave them their orders, saying, Go and take up your position secretly at the back of the town: do not go very far away, and let all of you be ready:

5 And I and all the people with me will come near the town, and when they come out against us as they did before, we will go in flight from them;

6 And they will come out after us, till we have got them away from the town; for they will say, They have gone in flight from us as before; so we will go in flight before them;

7 Then you will get up from your secret position and take the town, for the Lord your God will give it up into your hands.

8 And when you have taken the town, put fire to it, as the Lord has said: see, I have given you your orders.

9 So Joshua sent them out: and they took up a secret position between Beth-el and Ai, on the west side of Ai: but Joshua kept with the people that night.

10 And early in the morning Joshua got up, and put the people in order, and he and the chiefs of Israel went up before the people to Ai.

11 And all the fighting-men who were with him went up and came near the town, and took up a position on the north side of Ai facing the town, with a valley between him and the town.

12 And taking about five thousand men, he put them in position for a surprise attack on the west side of Ai, between Beth-el and Ai.

13 So all the people were in their places, the army on the north side of the town and the secret force on the west; and that night Joshua went down into the valley.

14 Now when the king of Ai saw it, he got up quickly and went out to war against Israel, he and all his people, to the slope going down to the valley; but he had no idea that a secret force was waiting at the back of the town.

15 Then Joshua and all Israel, acting as if they were overcome before them, went in flight by way of the waste land.

16 And all the people in Ai came together to go after them; and they went after Joshua, moving away from the town.

17 There was not a man in Ai and Beth-el who did not go out after Israel; and the town was open and unwatched while they went after Israel.

18 And the Lord said to Joshua, Let your spear be stretched out against Ai; for I will give it into your hands. So Joshua took up his spear, stretching it out in the direction of the town.

19 Then the secret force came quickly from their place, and running forward when they saw his hand stretched out, went into the town and took it, and put fire to it straight away.

20 Then the men of Ai, looking back, saw the smoke of the town going up to heaven, and were unable to go this way or that: and the people who had gone in flight to the waste land were turned back on those who were coming after them.

21 And when Joshua and all Israel saw that the town had been taken by the surprise attack, and that the smoke of the town had gone up, turning round they overcame the men of Ai.

22 Then the other force came out of the town against them, so that they were being attacked on this side and on that: and Israel overcame them and let not one of them get away with his life.

23 But the king of Ai they made prisoner, and took him to Joshua.

24 Then, after the destruction of all the people of Ai in the field and in the waste land where they went after them, and when all the people had been put to death without mercy, all Israel went back to Ai, and put to death all who were in it without mercy.

25 On that day twelve thousand were put to death, men and women, all the people of Ai.

26 For Joshua did not take back his hand with the outstretched spear till the destruction of the people of Ai was complete.

27 But the cattle and the goods from that town, Israel took for themselves, as the Lord had given orders to Joshua.

28 So Joshua gave Ai to the flames, and made it a waste mass of stones for ever, as it is to this day.

29 And he put the king of Ai to death, hanging him on a tree till evening: and when the sun went down, Joshua gave them orders to take his body down from the tree, and put it in the public place of the town, covering it with a great mass of stones, which is there to this day.

30 Then Joshua put up an altar to the Lord, the God of Israel, in Mount Ebal,

31 In the way ordered by Moses, the servant of the Lord, as it is recorded in the book of the law of Moses, an altar of uncut stones, untouched by any iron instrument: and on it they made burned offerings and peace-offerings to the Lord.

32 And he made there on the stones a copy of the law of Moses, writing it before the eyes of the children of Israel.

33 And all Israel, those who were Israelites by birth, as well as the men from other lands living with them, and their responsible men and their overseers and judges, took their places round the ark, in front of the priests, the Levites, whose work it was to take up the ark of the Lord's agreement; half of them were stationed in front of Mount Gerizim and half in front of Mount Ebal, in agreement with the orders for the blessing of the children of Israel which Moses, the servant of the Lord, had given.

34 And after, he gave them all the words of the law, the blessing and the curse, as it is all recorded in the book of the law;

35 Reading to all the meeting of Israel, with the women and the children and the men from other lands who were living among them, every word of the orders which Moses had given.

3 Joosua lähti sotaväkensä kanssa kohti Ain kaupunkia. Hän valitsi kolmekymmentätuhatta urheaa sotilasta ja lähetti heidät matkaan yöllä.

5 Minä ja ne joukot, jotka ovat minun kanssani, lähestymme kaupunkia. Silloin Ain miehet lähtevät taisteluun meitä vastaan kuten edelliselläkin kerralla, ja me olemme pakenevinamme heidän tieltään.

6 He lähtevät meidän peräämme, ja niin me houkuttelemme heidät ulos kaupungista. He näet luulevat, että me pakenemme heitä kuten viime kerralla. Me juoksemme pakoon heidän edellään,

7 mutta silloin te lähdette väijytyspaikastanne ja valtaatte kaupungin. Herra, teidän Jumalanne, antaa sen teidän käsiinne.

9 Joosua lähetti miehet matkaan, ja he asettuivat väijyksiin Ain kaupungin länsipuolelle, Betelin ja Ain välille. Joosua vietti sen yön pääjoukon luona.

10 Varhain seuraavana aamuna Joosua tarkasti joukkonsa. Hän ja Israelin vanhimmat lähtivät kansan kärjessä etenemään kohti Aita.

11 Saavuttuaan lähelle kaupunkia joukot leiriytyivät sen pohjoispuolelle; israelilaisten ja kaupungin väliin jäi laakso.

12 Joosua asetti noin viidentuhannen miehen joukon väijyksiin Ain länsipuolelle, Betelin ja Ain välille.

13 Näin siis pääjoukko pystytti leirinsä kaupungin pohjoispuolelle, ja erillinen joukko oli asemissa sen länsipuolella. Joosua vietti sen yön laaksossa.

14 Kun Ain kuningas aamulla näki israelilaiset, hän lähti heti sotajoukkoineen liikkeelle käydäkseen taisteluun israelilaisia vastaan avoimella kentällä, joka oli Jordaninlaakson suunnalla. Mutta hän ei tiennyt, että kaupungin takana oli israelilaisia väijyksissä.

15 Joosua ja hänen sotilaansa olivat joutuvinaan tappiolle ja pakenivat Jordaninlaakson suuntaan.

16 Silloin kaupungin koko muukin väki kutsuttiin ajamaan heitä takaa. Kaikki lähtivät Joosuan perään, ja näin israelilaiset saivat houkutelluksi väen ulos kaupungista.

17 Ainoatakaan miestä ei jäänyt Aihin eikä Beteliin, vaan kaikki lähtivät israelilaisten perään. He jättivät kaupungin suojattomaksi ja ryhtyivät ajamaan israelilaisia takaa.

19 Nähdessään Joosuan kohottavan kätensä väijyksissä olleet miehet ryntäsivät esiin, tunkeutuivat kaupunkiin, valtasivat sen ja sytyttivät sen heti palamaan.

20 Ain miehet kääntyivät katsomaan taakseen ja näkivät savun nousevan kaupungista taivaalle. Heiltä oli nyt tie tukossa kumpaankin suuntaan, sillä ne israelilaiset, jotka olivat olleet pakenevinaan autiomaahan, kääntyivätkin takaa-ajajiaan vastaan.

21 Joosua ja muut israelilaiset olivat nähneet, että väijyksissä ollut joukko oli vallannut kaupungin ja että sieltä nousi savu, ja siksi he kääntyivät takaisin ja kävivät Ain miesten kimppuun.

22 Samalla kaupungin vallanneet israelilaiset lähtivät heitä vastaan, ja Ain miehet jäivät kahden israelilaisjoukon väliin. Israelilaiset hyökkäsivät edestä ja takaa ja löivät heidät, niin ettei yksikään päässyt pakoon eikä jäänyt henkiin.

23 Mutta Ain kuninkaan he ottivat kiinni elävänä ja toivat Joosuan eteen.

24 Kun israelilaiset olivat autiomaassa kaupungin ulkopuolella lyöneet Ain miehet, jotka olivat seuranneet heidän kannoillaan, ja nämä oli surmattu viimeiseen mieheen, israelilaisten sotajoukko palasi Aihin, ja loputkin kaupungin asukkaat surmattiin.

25 Tuona päivänä saivat surmansa kaikki Ain asukkaat, kaksitoistatuhatta miestä ja naista.

26 Joosua piti tapparansa kohotettuna eikä antanut kätensä vaipua, ennen kuin israelilaiset olivat tuhonneet Ain asukkaat, jotka oli julistettu Herralle kuuluvaksi uhriksi.

27 Karja ja muu omaisuus otettiin kuitenkin ryöstösaaliiksi. Israelilaiset noudattivat kaikessa käskyä, jonka Herra oli Joosualle antanut.

28 Joosua poltti Ain kaupungin, ja siitä tuli autio rauniokumpu, jollainen se on vielä tänäkin päivänä.

29 Mutta Ain kuninkaan hän surmasi, ja ruumis sai riippua puussa iltaan saakka. Auringon laskettua Joosua käski ottaa ruumiin alas. Se heitettiin kaupunginportin ulkopuolelle ja sen päälle kasattiin suuri kiviröykkiö, joka on siellä vielä tänäkin päivänä.

30 Niihin aikoihin Joosua rakensi Ebalinvuorelle alttarin Herralle, Israelin Jumalalle.

31 Alttari rakennettiin kokonaisista luonnonkivistä, joihin rautainen työkalu ei ollut koskenut. Näin oli Mooses, Herran palvelija, käskenyt israelilaisten tehdä, ja tämä määräys on kirjoitettu Mooseksen lain kirjaan. Israelilaiset uhrasivat alttarilla polttouhreja ja yhteysuhreja.

32 Ebalinvuorella Joosua jäljensi israelilaisten nähden kiviin sen lain, jonka Mooses oli kirjoittanut.

33 Koko Israel, niin muukalaiset kuin syntyperäiset israelilaisetkin, kaikki kansan vanhimmat, päällysmiehet ja tuomarit seisoivat arkun molemmin puolin niiden leeviläispappien edessä, joiden tehtävänä oli kantaa Herran liitonarkkua. Puolet kansasta katsoi Garisiminvuorta kohti ja toinen puoli Ebalinvuorta kohti. Mooses, Herran palvelija, oli näet määrännyt, että Israelin kansa oli siunattava tällä tavoin.

34 Sitten Joosua luki ääneen koko lain, sekä siunaukset että kiroukset, juuri niin kuin lain kirjaan oli kirjoitettu.

35 Joosua ei jättänyt lukematta sanaakaan siitä, mitä Mooses oli käskenyt. Häntä kuulemassa oli koko Israelin kansa, miehet, naiset ja lapset sekä kansan parissa asuvat muukalaiset.