Complex sentence: The first polity on the Lak territory was the principality of Gumik, the was the residence of influential rulers in the history of Dagestan.
Split into simpler sentences: The first polity on the Lak territory was the principality of Gumik. Gumik was the residence of some of the influential rulers in the history of Dagestan.