In 1827 it acquired the status of city. In the war of 1868–1878 it was an insurgent stronghold. One of the most desperate conflicts of the war was fought nearby, and it was nearly destroyed by the opposing parties.