Greece was the first Balkan state to gain independence after the war between 1821-1832, though the Serbs had been fighting for release from Turkish control since 1804. In the Treaty of Berlin 1878, Greece, Serbia, Montenegro and Romania were recognised as independent states, and Bosnia and Herzegovina were occupied and administered by even though they officially still belonged to the Ottoman Empire, and Bulgaria was granted internal autonomy but it remained under Ottoman suzerainty