At that time Joshua turned back and captured Hazor and struck its king with the sword, because Hazor had formerly been the head of all those kingdoms.