Complex sentence: They served as a means of protection from invasion and as markers of territory.
Split into simpler sentences: They served as a means of protection from invasion. They also, however, served as a marker of territory.