Over time, as buildings went up outside the city walls, the gate lost its function as a barrier and city limit, but retained its historical and decorative significance.
The gate lost its function as a barrier and city limit. This was over time. The gate retained its historical and decorative significance. This was over time. Buildings went up outside the city walls.