In 1683, the Holy League of Austria, Poland, Venice, and Russia was formed to oppose the Ottoman Empire. The Ottoman Empire suffered defeat at the Battle of Vienna in 1683 and was forced to withdraw rapidly from Central Europe. The defeat and the chaotic situation within the Ottoman Empire created widespread social disruption in the Central Balkans, particularly in the regions of Üsküp and Niş, where Karposh's rebellion originated. On 25 October 1689, the Austrian branch of the Holy League, led by General Piccolomini, reached the Plain of Üsküp and were met with rejoicing by the inhabitants of the villages there. The same day, Piccolomini began a withdrawal of his forces, and on 26 October, set fire to the city. Skopje burned for two whole days, through 26 and 27 October. Most of the city of Skopje was destroyed in the fire. Some accounts of these events state that Piccolomini razed Skopje due to an inability of his forces to occupy and govern a city so far from his headquarters, while other accounts state that it was perpetrated to prevent the spread of infectious disease.
The uprising
In October 1689, an uprising broke out in the region between Köstendil, Şehirköy, and Üsküp. According to the Turkish historian Silahdar Findikli Mehmed Aga, its leader Karposh was initially a voivoda or haiduks in the vicinity of Dospat, in present-day Bulgaria. After in the Summer of 1689 hoping for help from the Austrian troops, haiduks, and voynuks led by Strahil vojvoda, rose in arms in the area of Northern Thrace between Filibe and Pazarcık, the Turks named him chief of Christian Auxiliary forces in the area between Sofya, Köprülü, Doyran, Köstendil and Nevrokop to resist against Strahil's rebels. However, he switched sides and attacked and captured Eğri Palanka, an Ottoman stronghold, which he made centre of his resistance. After securing Eğri Palanka, the rebels built and secured a new stronghold near Kumanova. It is unclear whether the Austrians assisted the rebels. According to contemporary Ottoman chronicles and local legends, Karposh was known as the "King of Kumanovo", a title conferred upon him by Emperor Leopold I who sent him a beautiful busby as a gift and a sign of recognition.
Suppression
The situation for the rebels did not turn out well due to military and political reversals which played a decisive role in the fate of the uprising. The first step taken by the Turkish Ottoman authorities in the region was to put down the rebellion and drive the Austrian army out of Ottoman territory. To do that the Ottomans employed the services of the Crimean KhanSelim I Giray. The council of war which met in Sofia on 14 November 1689 decided to attack the rebels through Kyustendil. But before they could do that they had to secure Kriva Palanka. Upon finding that they were about to be attacked, the rebels set fire to Kriva Palanka and concentrated their forces in the new fortress of Kumanovo. They just managed to make some preparations when the Ottoman and Tatar detachments arrived. The rebels were quickly overwhelmed by the numerically superior Ottoman force. A large number of rebels, including Karposh, were captured at the outset. When the battle was over, all rebels who resisted were slaughtered. Karposh and the others were taken prisoner. After subduing Kumanovo, the Ottomans left for Skopje where they executed Karposh and the others. It is believed that Karposh died on the historic Stone bridge in Skopje Ottoman Macedonia.
Aftermath
For the rebels who survived the battles there was no salvation from the Ottoman backlash except to leave the Balkans. Many fled north beyond the Sava and Danube Rivers.