Albanian Mountain Bandit crisis (1770-1800)
Albanian Mountain Bandit crisis (1770-1800) (Alb: Krisa e banditeve malore shqiptare) (Turk: Dağlı Eşkıyası) was an Ottoman crisis of raids and highway robberies committed by Albanian irregulars and bandits all over the Ottoman Empire during the reign of Selim III (r. 1789-1807). Many Albanian bandits had been mercenaries and soldiers who served in the Austro-Turkish War (1788–1791) and the Russo-Turkish War (1787–1792). After they were discharged, and there fore without payment, they began raiding and enlisting themselves in private armies of local war lords, many of whom were Albanians. Many Albanian highlanders from Dibra desired employment as mercenaries in a period of Ottoman instability. Istanbul received numerous reports of raids being carried out in Macedonia, Bulgaria, Albania, Morea and Greece which resulted in a crisis being declared. Many bandits, mostly Muslim Albanians, were hired by local nobles and beys to protect Orthodox Christian churches and monasteries in Kosovo. The bandit crisis was never confronted as many Ottoman Albanian soldiers hired to stop the bandits simply switched sides and joined the bandits when offered a better pay. The Ottomans also never had total control of the Albanians unless they "threatened" the empire.

Between 1795-1800, Albanian bandits raided regions of Edirne, and in one occasion, noble Mehmed Giray led his troops with the bandits in raids. In 1802, Ali Pasha of Tepelena, elected by Istanbul to get rid of the bandits, sometimes helped them instead. In 1806, the Ottomans began hiring the bandits for the Russo-Turkish War (1806–1812) thus decreasing the amount of banditry and restoring the order. This forced the Sultan to turn to Kara Mahmud Pasha and Ali Pasha of Yanina for help as they effectively controlled their locals. The crisis is considered to be part of the Age of Revolution (1789-1848) and the causal attributes for the Albanian bandit expansion is believe by scholars to be pastoralism, lack of agriculture and mountainous habitats thus making life difficult for Albanians irregulars.

Background 
There were many factors involved in the crisis. Through out the 1770s, local notables were fighting for power which resulted in increased prices and taxes resulting in poverty and many Albanians emigrated in search of work. There was also the plague which spread in Ioannina, Shkodër and Prizren in 1798-99 and 1803–04, noted by the French consul in Durrës. The plague was spread by Albanian brigands and soldiers returning from the Danubian Principalities. In June 1792, the Porte received reports that a number of Albanian bandits were roaming western and central Macedonia creating havoc. A certain Matli Osman, from today's Mat in central Albania, marched to Prilep with 300 Albanians to claim the position of the local military commander. Another bandit was Mulla Yunus, from Peshkopi, and an ally of Matli Osman, arrived too in the city with 2000 Albanians, led by Yasar Bey, Yusuf Bey and Hasan Dora, and demanded to be paid resulting in the local inhabitants fleeing and starving. Another bandit was Orhan bey of Berastan, from Permet, who had 2000 followers, and who complained to Istanbul that his ciftliks had been illegaly seized by an Ismail Bey when Orhan had been at war. There were also a shortage of food which contributed to the situation and in 1800, the Vali of Rumelia hired Albanian highlanders from the north and was shocked when he noted that they "were a little more than naked". The bandits seized the opportunity of the internal turmoil which plagued the Ottoman state at the time, and they raided both Christians and Muslims. Most of the Albanian bandits were sekbans who were hired by "ayans and derebeys" (great families of local notables), which spread the crisis all over the Rumelian provinces. Most bandits were Albanian, according to Frederick F. Anscombe.