New migrations and other tribes within the Hun-dominated areas, around 450 AD In the 4th century AD, the Roman Empire could no longer resist the attacks by the neighboring peoples. The empire's frontier started to collapse along the Danube in the 370s. The development of the
Hunnic Empire in the
Eurasian Steppes forced large groups of Germanic peoples, including the Quadi and the
Vandals, to leave their homelands by the Middle Danube and along the upper course of the river
Tisza in the early . Their lands were occupied by the
Heruli,
Sciri,
Rugii and other Germanic peoples. However, the
Carpathian Basin was dominated by the nomadic
Huns from the early and the Germanic peoples became subjects to
Attila the Hun. Disputes among Attila's sons caused the disintegration of his empire shortly after his death in 453. The Germanic peoples either regained their independence or left the Carpathian Basin (like the Heruli and the Sciri, respectively). Warriors' graves from the next century yielded large number of swords, spears, arrow heads, axes and other weapons. Other archaeological finds, including a glass
beaker from
Zohor, shows that the local inhabitants had close contacts with the
Frankish Empire and
Scandinavia.
Arrival of the Slavs Regarding the early history of Slavs, Slavic texts or a record written by a Slav dating from before the late 9th century are not known. The foreign sources (mostly Greek and Latin) about Slavs are very inconsistent. According to a scholarly theory, the first Slavic groups settled in the eastern region of present-day Slovakia already in the . The 6th-century Byzantine historian
Jordanes wrote that the funeral feast at Attila's burial was called
strava. Scholars who identify that word as a
Slavic expression say that Jordanes' report proves that Slavs inhabited the Carpathian Basin in the middle of the . However, according to a concurrent scholarly theory,
strava may have been a
Hunnic term, because no primary source mentioned that the Slavs were present in Attila's court. Settlements which represented a new
archaeological horizonthe so-called "
Prague-Korchak cultural horizon"appeared along the northernmost fringes of the Carpathian Mountains around 500. Similar settlements, which are dated to the second half of the , were also excavated in the region of the confluence of the Danube and the Morava. "Prague-Korchak" settlements consisted of about 10 semi-sunken huts, each with a stone oven in a corner. The local inhabitants used handmade pottery and cremated the dead. Most historians associate the spread of the "Prague-Korchak" settlements with the expansion of the early Slavs. According to historian Gabriel Fusek, written sources also evidence the presence of Slavs in the Central Europe in the first half of the . The 6th-century Byzantine historian,
Procopius, wrote of a group of the Heruli who had "passed through the territory of all of the
Sclavenes", or Slavs, during their migration towards the northern "
Thule". Procopius's report implies that the Slavs inhabited the region of the river Morava, but its credibility is suspect. Procopius also wrote of an exiled
Longobard prince, Hildigis, who first fled to the "Sclaveni" and then to the
Gepids, "taking with him not only those of the Longobards who had followed him, but also many of the Sclaveni" in the 540s. According to a scholarly theory, Hildigis most probably mustered his Slavic warriors in the region of the Middle Danube. The Germanic Longobards were expanding towards the Middle Danube in the early . Archaeological research shows that Longobard expansion bypassed virtually the entire territory of Slovakia and they settled only in the most north-western part of the country (
Záhorie). Unlike neighbouring Moravia, Slovakia (except of
Záhorie) did not belong to any German empire in this time. The Longobards and the local Slavs remained separated by the natural border formed by
Little and
White Carpathians, respected by both sides according to
Ján Steinhübel. He also writes that the Slavs, who remained "an independent third party" in strained Longobard-Gepid relations, were not interested in conflicts with their Germanic neighbours, but made raids in the faraway Byzantine Empire.
Avar Khaganate The Longobards left the Carpathian Basin for Northern Italy after the invasion of the territory by the
Avars in 568. The Avars were a group of nomadic warriors of mixed origin. They conquered the Carpathian Basin, subjugated the local peoples and launched plundering expeditions against the neighboring powers during the next decades. By the time of the Avars' arrival, the Slavs had settled in most lands that now form Slovakia, according to historian Stanislav Kirschbaum. Further migration waves strengthened the local Slavic population because new Slavic groups, pressed by the Avars, crossed the Eastern Carpathians, seceding from the Slavs who continued their expansion to the Balkan Peninsula. Dialects of Slovak still reflect that the Slavs came from different directions already in the Early Middle Ages, according to a widely accepted scholarly theory. Czech and Slovak share some features with the
South Slavic languages, distinguishing them from the other
West Slavic languages. According to archaeologist P. M. Barford, these features suggest that the Carpathian Mountains and the
Sudetes separated the ancestors of the
Slovaks and the
Czechs from the Slavs living to the north of those mountains. Especially the dialects of Central Slovakia, which "stand out from the continuous chain between the western and eastern dialects", preserved South Slavic features. The 7th-century Frankish
Chronicle of Fredegar wrote that the Avars employed the Slavs, or Wends, as
"Befulci", showing that the Slavs formed special military units in the
Avar Khaganate. According to the same chronicle, the Wends rose up in rebellion against their Avar masters and elected a Frankish merchant,
Samo, their king "in the fortieth year of
Clothar's reign", that is in 623 or 624. Modern historians agree that the Avars' defeat during the
siege of Constantinople in 626 enabled Samo to consolidate his rule. He routed the invading army of
Dagobert I,
King of the Franks, in the
Battle of Wogastisburg in 631 or 632. The realm of Samo, who ruled for 35 years, collapsed soon after his death. Its exact borders cannot be determined, but it must have been located near the confluence of the Danube and the Morava rivers. Historian Richard Marsina puts its centre to
Lower Austria. A new horizon of mostly hand-made potterythe so-called "Devínska Nová Ves pottery"appeared between the Middle Danube and the Carpathians before the end of the . Large inhumation cemeteries yielding such pottery were unearthed at Bratislava,
Holiare,
Nové Zámky and other places, suggesting that cemeteries were located near stable settlements. For instance, the cemetery at
Devínska Nová Ves, which contained about a thousand inhumation graves and thirty cremations, was used up until the end of the . In the 670s, the new population of the "griffin and tendril"
archaeological culture appeared in the Pannonian Basin expelling
Kuber's
Bulgars south out of
Sirmium (the westernmost part of
Kubrat's
Onoguria). Shortly afterwards the new Avar-Slav alliance could expand their territories even also over the
Vienna Basin. The political and cultural development in Slovakia continued in two separate lines. Lowland areas in the southern Slovakia got under the direct military control of the Avars. The Avars held strategic centers in
Devín and
Komárno which belonged to the most important centers of the khaganate. The Avars from Devín controlled Moravia and from Komárno they controlled southern Slovakia. In this time, the Avars already began to adopt a more settled lifestyle. The new period introduced Slavo-Avaric symbiosis and multi-ethnic Slavo-Avaric culture. The Slavs in southern Slovakia adopted new burial rite (inhumation), jewelry, fashion and used also common cemeteries with the Avars. Large Slavo-Avaric cemeteries can be found in
Devínska Nová Ves and
Záhorská Bystrica near
Bratislava and similar cemeteries, the proof of direct Avar power, south of the line
Devín-
Nitra-
Levice-
Želovce-
Košice-
Šebastovce. North of this line, the Slavs preserved previous burial rite (cremation, sometimes tumuli). Natural increase of the population together with immigration from the south led to the settlement also in mountain areas. In the 8th century, the Slavs increased their agricultural productivity (usage of iron plow) along with further development of crafts. Higher productivity initiated changes in the Slavic society, released a part of human resources previously required for farming and allowed to form groups of professional warriors. The Slavs began to build heavily fortified settlements (
hradisko - large
grad) protected by strong walls (8–10 m) and trenches (width 4–7 m, depth 2–3.5 m). Among the oldest belong
Pobedim,
Nitra-Martinský Vrch,
Majcichov,
Spišské Tomášovce and
Divinka. The neighborhood with Avars raised unification process and probably also formation of local military alliances. The archaeological findings from this period (such as an exquisite noble tomb in
Blatnica) support the formation of a
Slavic upper class on the territory that later became the nucleus of Great Moravia. A series of
Frankish-
Avar wars (788–803) led to the political fall of the
khaganate. In 805, the Slavs attacked again. Their offensive aimed mainly on the centers of Avar power -
Devín and
Komárno. The Avars were not able to resist attack and they were expelled to the right bank of
Danube. The Slavs from Slovakia probably participated also in further conflicts between small Slavic dukes and remaining Avar
tarkhans.
Principality of Nitra The
Conversio Bagoariorum et Carantanorum, written around 870, narrates that
Moimir, the leader of the
Moravians, expelled one
Pribina, forcing him to cross (or come up) the Danube and join
Radbod, who was the head of the
March of Pannonia in the
Carolingian Empire from around 830. Radbod presented Pribina to King
Louis the German who ordered that Pribina be instructed in the Christian faith and baptised. Three of the eleven extant copies of the
Conversio also contain an out of context statement which says that Adalram, who was
Archbishop of Salzburg between 821 and 836, had once consecrated a church on Pribina's "estate at a place over the Danube called Nitrava". According to a widely accepted scholarly theory, "Nitrava" was identical with Nitra in present-day Slovakia and the forced unification of Pribina's
Principality of Nitra with Mojmir's Moravia gave rise to the development a new state "
Great Moravia". Between 800 and 832, a group of Slavic hillforts in Slovakia quickly arose and disappeared. Archaeological research confirmed the fall of several important central hillforts approximately around the time when Pribina was expelled, e.g.
Pobedim or
Čingov. The lack of written sources does not allow to finally conclude if these events were caused by internal changes or by Moravian expansion. Pribina could be a ruler of an independent entity (the
Principality of Nitra) or in the case that Moravian expansion preceded his expulsion, he was a member of "Moravian" aristocracy. Other historians write that
Pribina's Nitrava cannot be identified with Nitra. Charles Bowlus says that a letter, written by
Theotmar,
Archbishop of Salzburg and his
suffragan bishops in about 900, strongly suggests that Nitra was only conquered by
Svatopluk I of Moravia only in the 870s. However, according to Třeštík, this information can be explained as a reasonable mistake of the Frankish bishops who knew that the territory was in the past a separate "regnum" different from Moravia and because it was ruled by
Svatopluk I, they incorrectly assumed that he also conquered it. According to archaeologist Béla Miklós Szőke, no source substantiates either the theory that Pribina was the head of an independent polity or the identification of Nitrava with Nitra. Richard Marsina writes that the Slovak nation emerged in that principality during Pribina's reign. Regarding the 9th century, the archaeological researches successfully established a distinction between "9th-century Slavic-Moravian" and "steppe" burial horizons in Slovakia.
Great Moravia Moravia emerged along the borders of the Avars' territory. Great Moravia arose around 830 when
Mojmír I unified the Slavic tribes settled north of the Danube and extended the Moravian supremacy over them. When Mojmír I endeavoured to secede from the supremacy of the king of
East Francia in 846, King
Louis the German deposed him and assisted Mojmír's nephew,
Rastislav (846–870) in acquiring the throne. The new monarch pursued an independent policy: after stopping a Frankish attack in 855, he also sought to weaken influence of Frankish priests preaching in his realm. Rastislav asked the
Byzantine Emperor Michael III to send teachers who would interpret Christianity in the Slavic vernacular. Upon Rastislav's request, two brothers, Byzantine officials and missionaries
Saints Cyril and Methodius came in 863.
Cyril developed the
first Slavic alphabet and translated the Gospel into
Old Church Slavonic. Rastislav was also preoccupied with the security and administration of his state. Numerous fortified castles built throughout the country are dated to his reign and some of them (
e.g.,
Dowina -
Devín Castle) are also mentioned in connection with Rastislav by Frankish chronicles. During Rastislav's reign, the Principality of Nitra was given to his nephew Svätopluk as an appanage. The rebellious prince allied himself with the Franks and overthrew his uncle in 870. Similarly to his predecessor, Svätopluk I (871–894) assumed the title of the king (
rex). During his reign, the Great Moravian Empire reached its greatest territorial extent, when not only present-day Moravia and Slovakia but also present-day northern and central Hungary, Lower Austria, Bohemia, Silesia, Lusatia, southern Poland and northern Serbia belonged to the empire, but the exact borders of his domains are still disputed by modern authors. (now Bratislava), the Hungarians routed
Bavarian armies. Historians traditionally put this year as the date of the breakup of the Great Moravian Empire. Great Moravia left behind a lasting legacy in Central and Eastern Europe. The
Glagolitic script and its successor
Cyrillic were disseminated to other Slavic countries, charting a new path in their cultural development. The administrative system of Great Moravia may have influenced the development of the administration of the
Kingdom of Hungary.
High Middle Ages Settlement of Hungarians in the 10th century From 895 to 902, the Hungarians progressively imposed their authority on the
Pannonian Basin. Although some contemporary sources mention that Great Moravia disappeared without trace and its inhabitants left, archaeological research and
toponyms suggest the continuity of Slavic population in the river valleys of the
Inner Western Carpathians. The oldest Hungarian graves in Slovakia are dated to the end of the 9th and the beginning of the 10th century (
Medzibordožie region, Eastern Slovakia). These findings document only a relatively short stay, without direct continuation in the settlement. Further findings elsewhere, in the most southern parts of Slovakia, are dated to 920-925 and consist mainly of graves of warrior type (isolated graves and smaller groups). Between 930 and 940, larger groups of Magyars began to migrate to the southern parts of today's Slovakia, but did not cross the line
Bratislava,
Hlohovec,
Nitra,
Levice,
Lučenec,
Rimavská Sobota. The territory affected by this early migration covers about 15% of today's Slovakia (7,500 km2). Hungarian settlements from these first two waves are not documented in the most fertile regions of
Trnava Board,
Považie north of
Hlohovec,
Ponitrie north of
Nitra and the
Eastern Slovak Lowland. In the 11th century, the differences between Slavic and Magyar graves disappeared. The archaeological research has also significantly changed the view on the settlement of the northern parts of the country. The territory of the present-day Slovakia became progressively integrated into the developing state (the future
Kingdom of Hungary) in the early 10th century. The
Gesta Hungarorum ("Deeds of the Hungarians") mentions that Huba, head of one of the seven Hungarian tribes, received possessions around
Nitra and the
Žitava River; while according to the
Gesta Hunnorum et Hungarorum ("Deeds of the Huns and Hungarians") another tribal leader,
Lél, settled down around
Hlohovec () and following the Hungarian victory over the Moravians, he usually stayed around Nitra. Modern authors also claim that the north-western parts of the Pannonian Basin were occupied by one of the Hungarian tribes.
Tercia pars regni or Principality of Nitra (11th century) (r. 992–1025) in the late 13th-century
Polish-Hungarian Chronicle (r. 992–1025): the borders of Poland are described based on the report of the late 13th-century
Polish-Hungarian Chronicle, the reliability of which is not universally accepted by specialists The development of the future Kingdom of Hungary started during the reign of Grand Prince
Géza (before 972–997) who expanded his rule over the territories of present-day Slovakia west of the River
Garam /
Hron. Although, he was baptised in or after 972, he never became a convinced Christian – in contrast to his son,
Stephen who followed him in 997. Some authors claim that following his marriage with
Giselle of Bavaria, Stephen received the "Duchy of Nitra" in appanage from his father. When Géza died, a member of the Árpád dynasty, the pagan
Koppány claimed the succession, but Stephen defeated him with the assistance of his wife's German retinue. A Slovak folk song mentions that
Štefan kral (
i.e., King Stephen) could only overcome his pagan opponent with the assistance of Slovak warriors around
Bíňa (). According to István Bóna the Slovak song may be a translation of a Hungarian folk song, because in 1664, none of the inhabitants of Bíňa was Slovak. Following his victory, Stephen received a crown from
Pope Silvester II and he was crowned as the first
King of Hungary in 1000 or 1001. The Kingdom of Hungary integrated elements of the former Great Moravian state organization. On the other hand, historians have not reached a consensus on this subject;
e.g., it is still being debated whether the formation of the
basic unit of the administration (
vármegye) in the kingdom followed foreign ( Frankish, Bulgarian, Moravian or Ottonian) patterns or it was an internal innovation.
Stephen (1000/1001–1038) established at least eight counties
("vármegye") on the territories of present-day Slovakia:
Abov (),
Boršod (),
Esztergom,
Hont,
Komárno (),
Nitra (),
Tekov () and
Zemplín () were probably founded by him. The scarcely populated northern and north-eastern territories of today Slovakia became the kings' private forests. King Stephen also set up several dioceses in his kingdom; in the 11th century, present-day Slovakia's territories were divided between the
Archdiocese of Esztergom (established around 1000) and its suffragan, the
Diocese of Eger (founded between 1006 and 1009). Around 1015, Duke
Bolesław I of Poland took some territories of present-day Slovakia east of the River
Morava, with Hungarian King Stephen recapturing these territories in 1018. Following King Stephen's death, his kingdom got involved in internal conflicts among the claimants for his crown and
Henry III, Holy Roman Emperor also intervened in the struggles. In 1042, the Emperor Henry captured some parts of today Slovakia east of the River Hron and granted them to King Stephen's cousin,
Béla, but following the withdrawal of the Emperor's armies, King
Samuel Aba's troops recaptured the territories. In 1048, King
Andrew I of Hungary conceded
one-third of his kingdom (
Tercia pars regni) in appanage to his brother, Duke Béla. The duke's domains were centered around Nitra and
Bihar (in Romanian:
Biharea in present-day
Romania). During the following 60 years, the
Tercia pars regni were governed separately by members of the Árpád dynasty (
i.e., by the Dukes
Géza,
Ladislaus,
Lampert and
Álmos). The dukes accepted the kings' supremacy, but some of them (Béla, Géza and Álmos) rebelled against the king in order to acquire the crown and allied themselves with the rulers of the neighbouring countries (
e.g., the
Holy Roman Empire,
Bohemia). The history of the
Tercia pars regni ended in 1107, when King
Coloman of Hungary occupied its territories taking advantage of the pilgrimage of Duke Álmos (his brother) to the Holy Land. Although, Duke Álmos, when returned to the kingdom, tried to reoccupy his former duchy with the military assistance of
Henry V, Holy Roman Emperor, but he failed and was obliged to accept the
status quo.
Mongol invasion (1241–1242) led to construction of mighty stone castles, such as
Spiš Castle. In 1241, the
Mongols invaded and devastated the north-western parts of the kingdom. In April 1241, the Mongolian army crossed the border with
Moravia near
Hrozenkov.
Trenčín Castle resisted the attack, but nearby places were plundered and some of them have never been restored. Mongols turned to the south and devastated regions along rivers
Váh and
Nitra. Only the strong castles,
e.g.,
Trenčín,
Nitra,
Fiľakovo () and fortified towns could resist attack. A part of the unprotected population escaped to the mountains and rough terrain where they built hill forts and camps. Most affected areas were the southwest Slovakia, Lower
Pohronie to
Zvolen and
Zemplín. It is estimated that at least a third of population died from famine and epidemics. Following the withdrawal of the Mongol army,
Frederick II, Duke of Austria invaded the country. In July 1242 his army reached
Hlohovec but the Hungarian army, mainly thank to troops from Trenčín and Nitra counties repelled the attack.
Bohumír (Bogomer), the
župan of Trenčín who played an important role in the suppression of Austrian units, later led the army send to help
Bolesław V the Chaste (son-in-law of the Hungarian king) attacked by
Konrad I of Masovia. The army consisted mainly of soldiers from the ethnic Slovak counties.
Development of counties and towns The royal administration of the territory was developing gradually during the 11th-13th centuries: new counties were established with the partition of existing ones or central counties of the kingdom expanded their territory northward today's
Bratislava (, ),
Trenčín, Gemer-Malohont () and
Novohrad (), while the kings' private forests were organised into "forest counties" around
Zvolen and
Šariš Castle (). Following the occupation of his brother's duchy, King Coloman set up (or re-established) the third bishopric in present-day Slovakia. Some of the towns in present-day Slovakia were granted special privileges already prior to the Mongol invasion:
Trnava (1238),
Starý Tekov (1240),
Zvolen and
Krupina (before 1241). Following the withdrawal of the Mongol troops (1242), several castles were built or strengthened (
e.g.,
Komárno,
Beckov () and
Zvolen) on the order of King Béla IV. In addition to a relatively developed network of castles, agglomerations of an urban character became more important. Medieval towns should serve both to economic and defensive purposes. The territory of present-day Slovakia was rich in raw materials like gold, silver, copper, iron and salt and therefore the mining industry developed gradually in the region. The development of the mining industry and commerce strengthened the position of some settlements and they received privileges from the kings. The list of towns with the earliest charters contains
Spišské Vlachy (1243),
Košice (before 1248),
Nitra (1248),
Banská Štiavnica (1255),
Nemecká Ľupča (1263),
Komárno (1269),
Gelnica (before 1270),
Bratislava (1291) and
Prešov,
Veľký Šariš and
Sabinov (all in 1299). The
Saxons in
Spiš () were granted a collective charter (1271) by King
Stephen V of Hungary. The colonisation of the northern parts of the Kingdom of Hungary continued during the period;
Walloon,
German,
Hungarian and
Slavic "guests" (
hospes, as they are called in contemporary documents) arrived to the scarcely populated lands and settled down there. The contemporary documents mention that settlers from
Moravia and
Bohemia arrived to the western parts of present-day Slovakia, while on the northern and eastern parts,
Polish and
Ruthenian "guests" settled down. German guests had an important but not exclusive role in the development of towns. Smaller groups of Germans were present already prior the Mongol invasion, but their immigration took a significant rate in the 13th-14th century. In that time, there already existed settlements with a relatively highly developed economy in the territory of present-day Slovakia, but Germans who came from economically and administrative more advanced regions introduced new forms of production and management, new legal system and culture. The German guests settled in Upper and Lower
Spiš, mining towns in Central Slovakia, their wide surroundings and many localities in Western Slovakia: Bratislava,
Trnava and wine-growing towns in
Malé Karpaty. In the Middle Ages, present-day Slovakia belonged to the most urbanized regions of the Kingdom of Hungary and it was an important cultural and economic base. According to the decree of the King Vladislaus II Jagiello (1498) six of the ten most important towns in the kingdom were located in the present-day Slovakia:
Košice,
Bratislava,
Bardejov,
Prešov,
Trnava and
Levoča. In 1514, more than half of the royal towns and free mining towns of the kingdom were located in Slovakia. At the end of the Middle Ages, about two hundred other settlements had an urban character from a functional point of view. The first written mention prior 1500 is available for 2.476 settlements. The mining towns in Slovakia significantly contributed to the economy of the Kingdom of Hungary. Around the middle of the 14th century,
Kremnica alone produced 400 kg of gold per year.
Banská Štiavnica and
Banská Bystrica produced a substantial proportion of silver of the whole kingdom. During the second half of the 14th century, the Kingdom of Hungary produced cca 25% of Europe's total output. The towns formed unions and associations to defend their privileges and common interests. The most important unions were the Community of Saxons of Spiš () (later reduced and known as the province of twenty-four Spiš towns), the Lower Hungarian Mining Towns (mining towns in Central Slovakia), Pentapolis (alliance of free royal towns in present-day Eastern Slovakia) and the Upper Hungarian Mining Towns (mining towns in eastern Slovakia including two mining towns in present-day Hungary). The inhabitants of the privileged towns were mainly of German origin, followed by Slovaks and smaller number of Hungarians. Royal privileges prove that several families of the developing local nobility (
e.g., the Zathureczky, Pominorszky and Viszocsányi families) were of Slavic origin. The presence of
Jews in several towns (
e.g., in Bratislava,
Pezinok) is also documented at least from the 13th century; the Jews' special status was confirmed by a charter of King
Béla IV of Hungary in 1251, but decisions of local
synods limited the participation of Jews (
i.e., they could not hold offices and they could not own lands). The
Muslims, living in the region of Nitra, also faced similar limitations; they disappeared (perhaps converted to Christianity) by the end of the 13th century.
Period of the oligarchs (1290–1321) and
Amade Aba. The last decades of the 13th century were characterized by discords within the royal family and among the several groups of the aristocracy. The decay of the royal power and the rise of some powerful aristocrats gave rise to the transformation of the administrative system: the counties that had been the basic units of the royal administration (
"royal counties") transformed gradually into autonomous administrative units of the local nobility (
"noble counties"); however, the local nobility was not able to stop the rise of oligarchs. Following the Mongol invasion of the kingdom, a competition started among the landowners: each of them endeavored to build a castle with or without the permission of the king. The competition started a process of differentiation among the noble families, because the nobles who were able to build a castle could also expand their influence over the neighbouring landowners. The conflicts among the members of the royal family also strengthened the power of the aristocrats (who sometimes received whole counties from the kings) and resulted in the formation of around eight huge territories (domains) in the kingdom, governed by powerful aristocrats in the 1290s. " (powerful lords) in early 14th century In present-day Slovakia, most of the castles were owned by two powerful aristocrats (
Amade Aba and
Matthew III Csák) or their followers. Following the extinction of the Árpád dynasty (1301), both of them pretended to follow one of the claimants for the throne, but, in practice, they governed their territories independently. Amade Aba governed the eastern parts of present-day Slovakia from his seat in
Gönc. He was killed by Charles Robert of Anjou's assassins at the south gate in
Košice in 1311. Matthew III Csák was the
de facto ruler of the western territories of present-day Slovakia, from his seat at
Trenčín. He allied himself with the murdered Amade Aba's sons against Košice, but King
Charles I of Hungary, who had managed to acquire the throne against his opponents, gave military assistance to the town and the royal armies defeated him at the
Battle of Rozgony / Rozhanovce in 1312. However, the north-western counties remained in his power until his death in 1321 when the royal armies occupied his former castles without resistance. Pressburg (Bratislava) county was
de facto ruled by the
Dukes of Austria from 1301 to 1328 when King
Charles I of Hungary reoccupied it.
Late Middle Ages (14th–15th centuries) King Charles I strengthened the central power in the kingdom following a 20-year-long period of struggles against his opponents and the oligarchs. He concluded commercial
agreements with Kings
John of Bohemia and
Casimir III of Poland in 1335 which increased the trade on the commercial routes leading from Košice to
Kraków and from
Žilina (hu.
Zsolna) to
Brno. The king confirmed the privileges of the 24 "
Saxon" towns in Spiš, strengthened the special rights of
Prešov and granted town privileges to
Smolník (hu.
Szomolnok ) The towns of present-day Slovakia were still dominated by its German citizens. However, the
Privilegium pro Slavis, dated to 1381, attests notably to
nation-building in the wealthy towns: King
Louis I gave the Slavs half of the seats in the municipal council of Žilina. Many of the towns (
e.g., Banská Bystrica, Bratislava, Košice, Kremnica and Trnava) received the status of "
free royal cities"
(liberæ regiæ civitates) and they were entitled to send deputies to the assemblies of the
Estates of the Kingdom from 1441. In the first half of the 14th century, the population of the regions of the former "forest counties" increased and their territories formed new counties such as Orava, Liptov,
Turiec,
Zvolen in the northern parts of present-day Slovakia. In the region of Spiš, some elements of the population received special privileges: the 24 "Saxon" towns formed an autonomous community, independent of
Spiš county, and the "nobles with ten lances" were organised into a special autonomous administrative unit ("seat"). In 1412, King
Sigismund mortgaged 13 of the "Saxon" towns to King
Władysław II of Poland so they
de facto belonged to Poland until 1769. From the 1320s, most of the lands of present-day Slovakia were owned by the kings, but
prelates and aristocratic families (
e.g., the
Drugeth,
Szentgyörgyi and
Szécsényi families) also hold properties on the territory. In December 1385, the future King Sigismund, who was Queen Mary of Hungary's
prince consort at that time, mortgaged the territories of present-day Slovakia west of the Váh River to his cousins, the
Jobst and
Prokop of Moravia; and the former held his territories until 1389, while the latter could maintain his rule over some of the territories until 1405. King Sigismund (1387–1437) granted vast territories to his followers (
e.g., to the members of the
Cillei,
Rozgonyi and
Perényi families) during his reign; one of his principal advisers, the Polish
Stibor of Stiboricz styled himself "Lord of the whole Váh" referring to his 15 castles around the river. Following the death of King
Albert (1439), civil war broke out among the followers of the claimants for the throne. The Dowager Queen
Elisabeth hired Czech
mercenaries led by
Jan Jiskra who captured several towns on the territory of present-day Slovakia (
e.g., Kremnica,
Levoča and
Bardejov) and maintained most of them until 1462 when he surrendered to King
Matthias Corvinus. ==Modern era==