fortification
Fortification is the process of building or reinforcing defenses. When there is a threat of war, the government may build walls and other defenses to protect the people.
The fortification is designed to protect the town from attack.
The fortification is designed to protect the soldiers from the enemy.