# File Szeretvai

File Szeretvai (Hungarian: Szeretvai Füle, Old Ruthenian: Филѧ; died 17 August 1245) was a Hungarian noble and military leader in the first half of the 13th century, who faithfully served kings Andrew II then Béla IV. He participated in various royal campaigns against the Principality of Halych, which allowed him to rise to the ranks of the upper nobility. He functioned as Master of the stewards from 1231 to 1232.

## Service in Halych

The parentage of File (also Phyle, Füle, Fila or Filja) is unknown. His descendants later possessed landholdings mostly in the northeast part of Upper Hungary, including Szeretva (present-day Stretava, Slovakia), which he acquired during his career and later was named after this village. He may have been of relatively lesser noble origin, while Mór Wertner considered that he had belonged to the gens Miskolc. Ukrainian historian Myroslav Voloshchuk also shared this viewpoint based on a 1233 charter, but he misidentified his person with clergyman File Miskolc.
His political and social orientation connected entirely to the Hungarian aspirations in the Principality of Halych along the north-eastern border. After Andrew II installed his second son, the minor Coloman the ruler (prince, then king) of Halych (or Galicia) in 1214, File belonged to the entourage of the young monarch. It is possible File was present when Andrew II and Leszek the White, High Duke of Poland in Szepes (today Spiš, Slovakia) in the autumn of 1214, where they arranged the marriage between Coloman and Salomea, and their alliance against regent Vladislav Kormilchyc. Representing the Hungarian elite, along with Demetrius Aba and Benedict the Bald, File became one of the outstanding pillars of Coloman's reign in Halych in the subsequent years. To forge closer ties within the "Hungarian party" in Halych, File married an unidentified daughter of Sudislav, a leading Galician boyar who supported Coloman. File and his wife had two sons, Stephen and Nicholas. Stephen was progenitor of the Szeretvai and Ramocsa de Szeretva noble families, a prominent kinship in Ung County until the beginning of the 16th century, but also possessed estates in Pozsony, Trencsén and Nyitra counties.
The relationship between Andrew II and Leszek the White had become tense after 1214. The Polish prince granted Volodymyr, which was the most prestigious princely seat in Volhynia, to Danylo and Vasilko Romanovich. He also failed to support Coloman during the siege of Halych. Leszek approached Mstislav Mstislavich, Prince of Novgorod, seeking his assistance against the Hungarians. Mstislav invaded Halych most probably in early 1219, according to historian Márta Font. File led the Hungarian army against the prince, but Mstislav routed his troops with the assistance of Cumans led by his father-in-law Köten. The defeat forced Coloman and his retinue, including File's father-in-law Sudislav, to flee to Hungary. The contemporary Galician–Volhynian Chronicle frequently calls File (Filja) as "gordy" – "proud", "haughty" or "overconfident" –, who constantly disparaged the Galician army. In Ukrainian historiography, he appears as a "cruel oppressor of Galicia".
By the summer of 1219, Leszek became hostile with Mstislav and the Romanovich brothers. Mstislav gave his daughter, Anna, in marriage to Danylo who soon occupied the lands between the rivers Wieprz and Bug from the Poles. Leszek reconciled with Andrew II; the two monarchs launched a military campaign jointly against Halych in October 1219. They defeated Mstislav in three battles, forcing him to withdraw and Coloman returned to the principality, while Danylo also surrendered the fortress of Halych. During the campaign, File led the Hungarian contingent, according to Márta Font, and remained in Halych in order to militarily support Coloman's labile rule in the principality, as there is no source for that King Andrew II sent subsequent Hungarian armies to Halych in the upcoming two years.
Mstislav hired Cumans and again invaded Halych in late 1220 or early 1221, but could not seize the capital. Mstislav's fiasco encouraged File to join Leszek's campaign against Volhynia, leaving Coloman and Salomea in the newly fortified Church of the Virgin Mary in Halych. Taking advantage of the absence of the bulk of the Hungarian army, Mstislav and the Cumans laid siege Halych in August 1221. File hurried back from his campaign, but Mstislav defeated his army and File was himself captured too on 14 August 1221. He could only flee with the help of a Galician boyar, Žiroslav. Coloman's retainers tried to resist in the fortified church, but the lack of water forced them to surrender. The Polish chronicler, Jan Długosz, wrote that Coloman and Salomea were imprisoned in the fortress of Torchesk. Andrew II and Mstislav negotiated and concluded a peace in late 1221 or early 1222. Mstislav released the Hungarian prisoners, while Coloman, who thus was able to return Hungary, had to relinquish his claim to the throne of Galicia–Volhynia.

## Social ascension

According to historian Attila Zsoldos, it is possible that File Szeretvai is identical with that File (Fila), who served as one of the vice-palatines (Latin: vicarius palatini) under Palatine Nicholas Szák in 1220. Zsoldos draw a social ascension for File, similarly to a fellow vice-palatine Maurice Pok. This File acted as judge in lawsuits in Transdanubian counties. Márta Font, who considered File permanently stayed in Halych between 1219 and 1221, questioned the identification.
Despite his military failures in Halych, File did not fall out of the king's favor. He was granted the land Szeleste in Vas County by Andrew II around 1230. He also acquired the village Gyüd, which laid near Tasnád in Szolnok County (present-day Tășnad, Romania). He served as Master of the stewards in the royal court from 1231 to 1232. When Andrew II concluded an agreement with the Holy See in August–September 1233, File was among those barons of the realm, who swore on the document. He was referred to as ispán of Sopron County in 1234. Following his death, a royal charter styled him as "ban". It could be a honorific title, but also possible he held the dignity of Ban of Slavonia or – less likely – Ban of Severin sometime during his life. The Polish chronicler Jan Długosz incorrectly styled him as "palatine" (Latin: palatinus), and this error has been taken over by some historians thereafter.
After Béla IV ascended the Hungarian throne in 1235, File retained his influence in the royal court, unlike several other barons, but there are no sources for additional office positions. During their first invasion in 1241–1242, the Mongols, who advanced from Kievan Rus' broke through the barricades erected in the Verecke Pass (Veretsky Pass, Ukraine), devastated File's estates laid in Northeast Hungary along the border with the Kingdom of Galicia–Volhynia. File "lost all his property" during the invasion, but managed to survive. As a compensation, Béla IV donated him the lands Biccse and Hoznica in Trencsén County (present-day Bytča and Hvozdnica in Slovakia, respectively). Nevertheless, File concentrated his acquisitions primarily in Ung County. He bought Szeretva for 16 marks from local castle warriors sometime after 1241. It is plausible he acquired the surrounding settlements too – Pályin (Palín, Slovakia), Gejőc (Mali Hejivci, Ukraine) and Pinkóc (Pinkovce, Slovakia) –, which were later mentioned as properties of the Szeretvai family by the end of the 13th century.
Following the withdrawal of the Mongols in 1242, Béla IV was seeking to organize a new defensive system by creating client states to the south and east of Hungary. He had given his daughter Anna in marriage to Rostislav Mikhailovich, a claimant to the throne of Halych. Following Rostislav's unsuccessful attack in 1244, Béla supported his son-in-law to invade Halych, ruled by Danylo Romanovich, in the summer of 1245 (earlier historiography incorrectly marked 1249 as the year of the Hungarian campaign). The Hungarian monarch appointed File Szeretvai to lead a huge army consisted of Hungarians and Poles. File is the only known Hungarian military leader, who participated in campaigns against Halych during the reigns of both Andrew II and Béla IV, over a period of twenty-five years. His role may have been motivated by his existing family relationships in Galicia–Volhynia. Rostislav launched an attack against Jarosław north of Przemyśl; on 17 August 1245, Danylo, with Cuman assistance, annihilated the enemy, and Rostislav had to flee again to Hungary. File was killed during the skirmish, along with many Hungarians and Poles. According to the Galician–Volhynian Chronicle, File was captured and executed by Danylo himself. The Chronicle of the Romanids narrates that File was "captured by the enemies in our former army in Rus' and murdered by diverse tortures and miserably perished". His sons, Stephen and Nicholas were granted his formerly possessed domains in Trencsén County by Béla IV in December 1250.