Answer
Njegoš became the ruler of Montenegro through inheritance from his uncle, Petar I Petrović-Njegoš, who had designated him as his successor due to his exceptional intelligence, leadership qualities, and deep understanding of Montenegrin culture and traditions. Njegoš's succession ensured a smooth transition of power and maintained the Petrović-Njegoš dynasty's rule in Montenegro, contributing to the continuity of the country's political and cultural heritage.