Complex sentence: Megaliths were used for a variety of purposes ranging from serving as boundary markers of territory, to a reminder of past events, and to being part of the society's religion.
Split into simpler sentences: Megaliths were used for a variety of purposes. The purpose of megaliths ranged from serving as boundary markers of territory, to a reminder of past events, to being part of the society's religion.