Principality of Kastrioti
Principality of Kastrioti () was one of the Albanian principalities during the Late Middle Ages. It was formed by Pal Kastrioti who ruled it until 1407, after which his son, Gjon Kastrioti ruled until his death in 1437 and then ruled by the national hero of Albania, Skanderbeg.

Formation
Gjon Kastrioti originally had only two small villages. In a short time, John Kastrioti managed to expand its lands so as to become the undisputed lord of Central Albania.
He married Voisava Tripalda who bore 5 daughters, Mara, Jela, Angjelina, Vlajka, and Mamica, and 4 sons, Reposh, Stanisha, Kostandin and Gjergj Kastrioti (who would come to be known as Skanderbeg). Gjon Kastrioti was among those who opposed the early incursion of Ottoman Bayezid I, however his resistance was ineffectual. The Sultan, having accepted his submissions, obliged him to pay tribute to ensure the fealty of local rulers, and to send his three sons Gjergj Kastrioti to the Sultan's court as hostages. After his conversion to Islam, the young Skanderbeg attended military school in Edirne and led many victorious battles for the Ottoman Empire. For his military victories, he received the title Arnavutlu İskender Bey, (Albanian: Skënderbe shqiptari, English: Lord Alexander, the Albanian) comparing Kastrioti's military brilliance to that of Alexander the Great.

Rise of Skanderbeg
Skanderbeg was distinguished as one of the best officers in several Ottoman campaigns both in Asia Minor and in Europe, and the Sultan appointed him General. He fought against Greeks, Serbs and Hungarians, and some sources say that he used to maintain secret links with Ragusa, Venice, Ladislaus V of Hungary, and Alfonso I of Naples. Sultan Murat II gave him the title Vali which made him General Governor.
On November 28, 1443, Skanderbeg saw his opportunity to rebel after the Battle of Niš against the Hungarians led by John Hunyadi in Niš as part of the Crusade of Varna. He switched sides along with 300 other Albanians serving in the Ottoman army. After a long trek to Albania he eventually captured Krujë by forging a letter from the Sultan to the Governor of Krujë, which granted him control of the territory. After capturing the castle, Skanderbeg abjured Islam and proclaimed himself the avenger of his family and country. He raised a flag showing a double-headed eagle, an ancient symbol used by various cultures of Balkans (especially the Byzantine Empire), which later became the Albanian flag. The Governor was killed as he was returning to Edirne, unaware of Skanderbeg's intentions.
Skanderbeg allied with George Arianite (born Gjergj Arianit Komneni) and married his daughter Donika (born Marina Donika Arianiti).

League of Lezhë

Following the capture of Krujë, Skanderbeg managed to bring together all the Albanian princes in the town of Lezhë Historian Edward Gibbon writes that: With this support, Skanderbeg built fortresses and organized a mobile defense force that forced the Ottomans to disperse their troops, leaving them vulnerable to the hit-and-run tactics of the Albanians. He managed to create the League of Lezhë, a federation of all Albanian Principalities.The main members of the league were the Arianiti, Balšić, Dukagjini, Muzaka, Spani, Thopia and Crnojević noble families. For 25 years, from 1443–1468, Skanderbeg's 10,000 man army marched through Ottoman territory winning against consistently larger and better supplied Ottoman forces. Threatened by Ottoman advances in their homeland, Hungary, and later Naples and Venice – their former enemies – provided the financial backbone and support for Skanderbeg's army. By 1450 it had certainly ceased to function as originally intended, and only the core of the alliance under Scanderbeg and Araniti Comino continued to fight on.

The League of Lezhë first distinguished itself under Skanderbeg at the Battle of Torvioll where he defeated the Ottoman forces. Skanderbeg's victory was praised throughout the rest of Europe. The battle of Torvioll thus opened up the quarter-century war between Skanderbeg's Albania and the Ottoman Empire.

On 14 May 1450, an Ottoman army, larger than any previous force encountered by Skanderbeg or his men, stormed and overwhelmed the castle of the city of Kruja, capital of the Principality of Kastrioti. This city was particularly symbolic to Skanderbeg because he had been appointed suba of Kruja in 1438 by the Ottomans. The fighting lasted four months and over one thousand Albanians lost their lives while over 20,000 Ottomans died in battle. Even so, the Ottoman forces were unable to capture the city and had no choice but to retreat before winter set in. In June 1446, Mehmed II, known as "the conqueror", led an army of 150,000 soldiers back to Kruja but failed to capture the castle. Skanderbeg's death in 1468 did not end the struggle for independence, and fighting continued until 1481, under Lekë Dukagjini, when the Albanian lands were forced to succumb to the Ottoman armies.

See also
 House of Kastrioti
 League of Lezhë
 Albanian principalities
 History of Albania

References
"History of Albanian People" Albanian Academy of Science. 

1444 disestablishments
States and territories established in 1389
Albanian principalities
Former countries in the Balkans
Vassal states of the Ottoman Empire
Former monarchies