 Because of low productivity on military farms and the need for more guards along the frontier, most of the frontier soldiers were from military families that served on the farms.Soldiers were involved in the building of the Great Wall because Ming officials preferred to fight a defensive war on the northern frontier.This took the form of building fortresses and walls along the frontier to protect the empire from invaders.