Under Nicholas I (ruled 1860–1918), the principality was enlarged several times in the Montenegro-Turkish Wars and was recognised as independent in 1878. Nicholas I established diplomatic relations with the Ottoman Empire. 