Complex sentence: It was the center of government of that area as well as it acted as fortified military base for some time and was surrounded by a huge trench for protection.
Split into simpler sentences: It was the center of government of that area. It acted as fortified military base for some time and was surrounded by a huge trench for protection.