The Lord gave the town to the Israelites who captured it on the second day. Joshua had everyone in it killed, just as he had done in Libnah.