The wall was the most heavily fortified border in the Empire. In addition to its role as a military fortification, it is thought that many of the gates through the wall would have served as customs posts to allow trade and levy taxation.