The Montenegrins expelled the Ottomans and asserted independence after the Great Turkish War (1683–1699).