Porta Nigra   was built in the last third of the 2nd century as the northern gate of the city walls, which were originally 6.4 km (4 miles) long.