The new feeling of danger and the menace of barbarian invasions was clearly shown by the decision of Emperor Aurelian, who at year 273 finished encircling the capital itself with a massive wall which had a perimeter that measured close to 20 kilometers .