大ブルガリア公国
The city was a sanjak centre initially in Rumelia governorate-general, after that in the Bitola and Niš vilayets (province). It was a kaza centre in the Sofia sanjak of Danube Province until the creation of the Principality of Bulgaria in 1878.