“The seventh lot came out for the tribe of Dan, according to its families. The territory of its inheritance included Zorah, Eshtaol, Ir-shemesh, Shaalabbin, Aijalon, Ithlah, Elon, Timnah, Ekron, Eltekeh, Gibbethon, Baalath, Jehud, Bene-berak, Gath-rimmon, and Me-jarkon and Rakkon a the border opposite Joppa. When the territory of the Danites was lost to them, the Danites went up and fought against Leshem. After capturing it and putting it to the sword they took possession of it and settled in it, calling Leshem Dan, after the name of Dan their ancestor. This is the inheritance of the tribe of Dan, according to their families, these towns with their villages.”
Dan’s original territory between Judah, Benjamin and Ephraim was wiped out so that they ended up in the northeast corner, east of Naphtali and west of Manasseh. The battle at Leshem gave Dan some territory. Otherwise Judah would have it. Dan like Simeon seems like a vanishing tribe. There is no mention of when this happened. It is interesting that it is mentioned at the partition of the territories, before it actually happened. 3 of the towns mentioned here were also given to Judah: Zorah, Eshtaol, and Ekron. 8 others are only mentioned here and not elsewhere in the biblical books: Ir-shemesh, Shaalabbin, Ithlah, Jehud, Bene-berak, Me-jarkon, Rakkon, and Leshem.