Congress of Berlin
From 1878 to 1908 it, along with the rest of the Sanjak, was administered by the Austro-Hungarian Empire as a result of the Congress of Berlin. But in 1908 it was returned to Turkey.