Jeremiah 17:24shaar
"But it will come about, if you listen attentively to Me," declares the Lord, "to bring no load in through the gates of this city on the sabbath day, but to keep the sabbath day holy by doing no work on it,
Gates controlled what entered the city, including on the sabbath.
Ezekiel 21:22shaar
"Into his right hand came the divination, 'Jerusalem,' to set battering rams, to open the mouth for slaughter, to lift up the voice with a battle cry, to set battering rams against the gates, to cast up ramps, to build a siege wall.