Guards would regulate those who entered and departed.
People entering and departing were regulated by guards.