The oldest fortifications are at least 100,000 years old.
Fortifications are made to keep strangers out, by use of force.
Peaceful and low-cost mass migration is a recent, capitalist and Statist phenomenon, found only where local communities are weak and States are strong.