In those days there was no king in Israel. Also in those days the tribe of Dan was searching for a territory of their own to live in, since no permanent territory had been assigned to them among the tribes of Israel up to that point.