During the period in the 12th, 13th and early 14th century, parts of modern western North Macedonia were under the rule of the Albanian Noble Gropa family, which ruled territories between Ohrid and Debar. The city of Debar and some other territories after the ending rule of Gropa Noble family, were ruled by the Albanian Royal House of Kastrioti which ruled the Principality of Kastrioti during the end of the 14th century and the first half of the 15th century. After the death of the Albanian Prince Gjon Kastrioti in 1437, many parts of his domains were conquered by the Ottoman Empire and shortly after this, during the 15th century were again restored into the Albanian rule of League of Lezhë led by Gjergj Kastrioti Skanderbeg. During this period, western territories of modern North Macedonia became battleground between the Albanian and Ottoman armies. Some of the battles that took place in the territory of Macedonia were the Battle of Polog, Battle of Mokra, Battle of Ohrid, Battle of Otonetë, Battle of Oranik and many others. Skanderbeg's Campaign into Macedonia also took place. With the death of Skanderbeg on 17 January 1468 the Albanian Resistance began to fall. After the death of Skanderbeg the Albanian League was led by Lekë Dukagjini, but it did not have the same success as before and the last Albanian strongholds were conquered in 1479 in the Siege of Shkodër.
During the period in the 12th, 13th and early 14th century, parts of modern western North Macedonia were under the rule of the Albanian Noble Gropa family, which ruled territories between Ohrid and Debar. The city of Debar and some other territories after the ending rule of Gropa Noble family, were ruled by the Albanian Royal House of Kastrioti which ruled the Principality of Kastrioti during the end of the 14th century and the first half of the 15th century. After the death of the Albanian Prince Gjon Kastrioti in 1437, many parts of his domains were conquered by the Ottoman Empire and shortly after this, during the 15th century were again restored into the Albanian rule of League of Lezhë led by Gjergj Kastrioti Skanderbeg. During this period, western territories of modern North Macedonia became battleground between the Albanian and Ottoman armies. Some of the battles that took place in the territory of Macedonia were the Battle of Polog, Battle of Mokra, Battle of Ohrid, Battle of Otonetë, Battle of Oranik and many others. Skanderbeg's Campaign into Macedonia also took place. With the death of Skanderbeg on 17 January 1468 the Albanian Resistance began to fall. After the death of Skanderbeg the Albanian League was led by Lekë Dukagjini, but it did not have the same success as before and the last Albanian strongholds were conquered in 1479 in the Siege of Shkodër.