One of the earliest known instances of perimeter security on a large scale is that of Hadrian's Wall in the Roman Empire.
Perhaps the most obvious illustration of perimeter security in ancient times, the Great Wall of China was originally built to withstand nomadic invaders from the North.