In Genesis 22:17, God assures Abraham that his descendants will be able to “seize the gates of their enemies.” The implication is that once the gates were taken, the battle was over; the city might as well surrender and avoid further destruction. In fact, “gates” is often a metonym for “cities” in Biblical Hebrew (see Judges 5:11).