Middle Ages
The Roman Empire was split in 395 upon the death of Theodosius I into an Eastern and Western Roman Empire, in part because of the increasing pressure from threats during the Barbarian Invasions. From the 6th century into the 7th century, the Slavs crossed the Danube and largely absorbed the indigenous Greeks, Illyrians, and Thracians in the Balkans; thus, the Illyrians were mentioned for the last time in historical records in the 7th century.
In the 11th century, the Great Schism formalised the break of communion between the Eastern Orthodox and Western Catholic Church, which is reflected in Albania through the emergence of a Catholic north and Orthodox south. The Albanian people inhabited the west of Lake Ochrida and the upper valley of the River Shkumbin and established the Principality of Arbanon in 1190 under the leadership of Progon of Kruja. The realm was succeeded by his sons Gjin Progoni and Demetrio Progoni.
Upon the death of Dhimiter, the territory came under the rule of the Albanian-Greek Gregorios Kamonas and subsequently under the Golem of Kruja. In the 13th century, the principality was dissolved. Arbanon is considered to be the first sketch of an Albanian state, which retained a semi-autonomous status as the western extremity of the Byzantine Empire, under the Byzantine Doukai of Epirus or Laskarids of Nicaea.
Towards the end of the 12th and beginning of the 13th centuries, Serbs and Venetians began to take possession of the territory. The ethnogenesis of the Albanians is uncertain; however, the first undisputed mention of Albanians dates back in historical records from 1079 or 1080 in a work by Michael Attaleiates, who referred to the Albanoi as having taken part in a revolt against Constantinople. At this point, the Albanians were fully Christianised.
After the dissolution of Arbanon, Charles I of Anjou concluded an agreement with the Albanian rulers, promising to protect them and their ancient liberties. In 1272, he established the Kingdom of Albania and conquered regions back from the Despotate of Epirus. The kingdom claimed all of central Albania territory from Dyrrhachium along the Adriatic Sea coast down to Butrint. A Catholic political structure was a basis for the papal plans of spreading Catholicism in the Balkans. This plan also found the support of Helen of Anjou. Around 30 Catholic churches and monasteries were built during her rule, mainly in northern Albania. Internal power struggles within the Byzantine Empire in the 14th century enabled Serbs' most powerful medieval ruler, Stefan Dušan, to establish a short-lived empire that included all of Albania except Durrës.
In 1367, Albanian rulers established the Despotate of Arta. During that time, several Albanian principalities were established, notably the Principality of Albania, the Principality of Kastrioti, the Lordship of Berat, and the Principality of Dukagjini. In the first half of the 15th century, the Ottoman Empire invaded most of Albania, and the League of Lezhë was organized under Skanderbeg as a ruler, who became the national hero of the Albanian medieval history.
With the fall of Constantinople, the Ottoman Empire entered an extended period of military conquest and expansion, with its borders gradually expanding deep into Southeast Europe. In 1385, they reached the Albanian Ionian Sea Coast, while in 1415, they established their garrisons across Southern Albania, eventually occupying most of Albania in 1431. Thousands of Albanians consequently fled to Western Europe, particularly to Calabria, Naples, Ragusa, and Sicily, while numerous others sought protection at the often inaccessible Mountains of Albania. Since the vast majority of Albanians were adherents of Christianity, they were considered an inferior class of people, and they were discriminated against in various forms, including being subjected to heavy taxes. Additionally, the devshirme system allowed the sultan to collect a requisite percentage of Christian adolescents from their families to compose the Janissary. The Ottoman conquest was also accompanied by the gradual process of Islamisation and the rapid construction of mosques.
A prosperous and longstanding revolution erupted after the formation of the League of Lezhë until the fall of Shkodër under the leadership of Gjergj Kastrioti Skanderbeg, who consistently defeated major Ottoman armies led by Sultans Murad II and Mehmed II. Skanderbeg managed to unite several of the Albanian principalities, amongst them the Arianitis, Dukagjinis, Zaharias, and Thopias, and establish a centralised authority over most of the non-conquered territories, becoming the lord of Albania. The Ottoman Empire's expansion ground to a halt during the time that Skanderbeg's forces resisted, and he has been credited with being one of the main reasons for the delay of Ottoman expansion into Western Europe, giving the Italian principalities more time to better prepare for the Ottoman arrival. However, the failure of most European nations, with the exception of Naples, to adequately support him, along with the failure of Pope Pius II's plans to organise a promised crusade against the Ottomans, signified that none of Skanderbeg's victories permanently hindered the Ottomans from invading the western Balkans.
Despite his competence as a military leader, Skanderbeg's victories over the Ottoman Empire's military had only a short-term impact, as his forces were unable to halt the Ottomans' advancement permanently; therefore, they successfully delayed the final conquest of Albanian lands only temporarily. The constant Ottoman invasions caused enormous destruction to Albania, greatly reducing the population and destroying flocks of livestock and crops. Besides surrender, there was no possible way Skanderbeg would be able to halt the Ottoman invasions despite his military forces achieving several consecutive victories against them. Among other factors, his manpower and resources were insufficient for a prolonged war, preventing him from expanding the war efforts and driving the Turks from the Albanian borders. Albania was therefore doomed to face an unending series of Ottoman attacks until it eventually fell years after his death.
When the Ottomans were gaining a firm foothold in the region, Albanian towns were organised into four principal sanjaks. The government fostered trade by settling a sizeable Jewish colony of refugees fleeing persecution in Spain. Vlorë saw passing through its ports imported merchandise from Europe, such as velvets, cotton goods, mohairs, carpets, spices, and leather from Bursa and Constantinople. Some citizens of Vlorë even had business associates throughout Europe.
The phenomenon of Islamisation among the Albanians became primarily widespread from the 17th century and continued into the 18th century. Islam offered them equal opportunities and advancement within the Ottoman Empire. However, according to some scholars, motives for conversion were diverse depending on the context; although the lack of source material significantly hampers efforts to investigate such issues. As a result of the Ottomans' increasing suppression of Catholicism, most Catholic Albanians converted in the 17th century, while Orthodox Albanians followed suit mainly in the following century.
Since the Albanian-inhabited regions were considered strategically important, Albanians made up a significant proportion of the Ottoman Empire's military and bureaucracy. Consequently, many Muslim Albanians attained important political and military positions, while their work made a significant cultural contribution to the broader Muslim world. Enjoying this privileged position, they held various high administrative positions, which, among others, included over two dozen Albanians serving as grand viziers of the Ottoman Empire. Additionally, other distinguished Albanians included members of the prominent Köprülü family, Zagan Pasha, Muhammad Ali of Egypt, and Ali Pasha of Tepelena. Furthermore, two Ottoman sultans, Bayezid II and Mehmed III, were born to mothers of Albanian ethnic backgrounds.