information:filtering, structural:scholar_edition
Arrival of the Slavs

Three principalities were located on the territory: Duklja, roughly corresponding to the southern half, Travunia, the west, and Raška, the north. Duklja gained its independence from the Byzantine Roman Empire in 1042. Over the next few decades, it expanded its territory to neighbouring Rascia and Bosnia, and also became recognised as a kingdom. Its power started declining at the beginning of the 12th century. After King Bodin's death (in 1101 or 1108), civil wars ensued. Duklja reached its zenith under Vojislav's son, Mihailo (1046–1081), and his grandson Constantine Bodin (1081–1101).

As the nobility fought for the throne, the kingdom was weakened, and by 1186, the territory of modern-day Montenegro became part of the state ruled by Stefan Nemanja and was a part of various state formations ruled by the Nemanjić dynasty for the next two centuries. After the Serbian Empire collapsed in the second half of the 14th century, the most powerful Zetan family, the Balšićs, became sovereigns of Zeta.

By the 13th century, Zeta had replaced Duklja when referring to the realm. In the late 14th century, southern Montenegro (Zeta) came under the rule of the Balšić noble family, then the Crnojević noble family, and by the 15th century, Zeta was more often referred to as Crna Gora.

In 1421, Zeta was annexed to the Serbian Despotate, but after 1455, another noble family from Zeta, the Crnojevićs, became sovereign rulers of the country, making it the last free monarchy of the Balkans before it fell to the Ottomans in 1496, and got annexed to the sanjak of Shkodër. For a short time, Montenegro existed as a separate autonomous sanjak in 1514–1528 (Sanjak of Montenegro). Also, Old Herzegovina region was part of Sanjak of Herzegovina.