In the period of reign of Petar II Petrović-Njegoš, Montenegro was again colonized by Turkey, but that changed with the coming of Knyaz Danilo I, with a totally successful war against Turkey in the late 1850s ending with a decisive victory of the Montenegrin army under Grand Duke Mirko Petrović-Njegoš, brother of Danilo I, at the Battle of Grahovac. The full independence was given to Montenegro, after almost 170 years of fighting the Turks, Bosniaks, Albanians and the French (1806–1814) at the Congress of Berlin.