It's time to close the gate.

Literal

Gate [obj-を] close time [copula-だ].

[Verb dictionary form]+時だ is the 'it's time to X' pattern. Clean structure: relative clause + noun 時 + copula. A functional instruction.