Andrew's episcopal activity of thee decades coincided with one of the most chaotic periods of the medieval Kingdom of Hungary, the so-called era of "feudal anarchy". The territory of the Diocese of Eger was the scene of various oligarchic endeavors as powerful families tried to build their domain independent of the king. After Ladislaus IV was declared to be of legal age in 1277, the monarch intended to eliminate the
Geregyes' power, who ruled the territory through from
Szepesség (Spiš) to
Transylvania via
Nyírség. Ladislaus launched a military campaign against them at the turn of 1277 and 1278. The royal troops also pillaged, devastated and confiscated the episcopal villages which laid in Eger valley, and many local residents were interned to
Szihalom in the spring of 1278. The attack was retaliatory because Ladislaus assumed the bishop cooperated with the Geregyes and supported their aspiration. In late 1278,
Pope Nicholas III sent
Philip,
Bishop of Fermo, to Hungary to help Ladislaus IV restore royal power and to arrange a number of Church irregularities in Hungary. The
papal legate arrived in the kingdom in early 1279. Philip soon realized, that most
Cumans (the king's favorite subjects) were still pagans in Hungary. The national deat, thereafter, adopted the so-called
Cuman laws and also authorized John Hont-Pázmány and four other bishops – including Andrew –, whose dioceses were inhabited by a significant number of Cuman tribes, to visit and baptize the Cumans, to liberate Hungarian prisoners and to examine the noble lands surrounded by the tribes. The policy of the papal legate, who had no regard for local political conditions, forced the Hungarian prelates to decide between the Hungarian monarch and the
Roman Curia. Following that the papal legate convened a synod in
Buda on 14 September 1279, where Andrew also attended. After Bishop Philip of Fermo left Hungary in the summer of 1281, Ladislaus IV attempted to restore political consolidation and reconcile with the Hungarian bishops. On his way to his military expedition against the strongholds of the rebellious lord
Finta Aba in the summer of 1281, the monarch visited the Diocese of Eger, when he negotiated with Andrew. Three years later, Ladislaus returned four settlements – Bökény, Csépes, Kacsád and
Recsk – to the chapter and also confirmed the bishop's right of ownership over the previously pillaged episcopal villages in Eger valley in June and September 1284, respectively. In the same time, the king also transcribed and confirmed the charter of his late father Stephen V from 1271, which guaranteed the rights and privileges of the diocese. The king also provided the right of hold weekly fairs on every
Thursdays to the episcopal village of
Szikszó. The territory of the diocese was heavily affected by the
second Mongol invasion of Hungary at the turn of 1285 and 1286. Fierce fighting occurred in Újvár and
Sáros counties, but local nobles soon expelled the invaders from the area. By the late 1280s, the territory of the diocese fell within the sphere of interest of some local powerful lords, who established their oligarchic dominions around that time.
Stephen Ákos and his clan, who acquired large-scale landholdings in Borsod County, arbitrarily usurped the village of
Cserép from the diocese for decades. Andrew complaint to the royal court in 1296 that Stephen Ákos had unlawfully seized the bishopric's two estates – Cserép and
Kisgyőr –, therefore the monarch Andrew III permitted him to launch a lawsuit in any court. Around the same time,
Amadeus Aba – who had important role in the victory over the Mongols – ruled
de facto independently the northern and north-eastern counties of the kingdom, which also covered the overwhelming majority of the bishopric of Eger. Andrew maintained a good and cooperative relationship with Amadeus Aba during the second half of his episcopal tenure; the lord also supported the church financially in his oligarchic domain. Bishop Andrew supported the political orientation of King Andrew III, who ascended the Hungarian throne in 1290. Upon the request of Archbishop
Lodomer and two local bishops, Andrew of Eger and
Paschasius of Nyitra (Nitra), the newly crowned monarch confirmed Amadeus Aba in his all revenues in
Ung County along with his positions in November 1290. Bishop Andrew was styled as the chancellor of the royal consort, Queen
Fenenna of Kuyavia in July 1291. It is possible he held the dignity for a brief time only, substituting
Benedict Rád temporarily for some reasons. In the 1290s, Archbishop Lodomer and the entire Church episcopal hierarchy were considered the strongest pillars of King Andrew's reign until his death and the extinction of the
Árpád dynasty in 1301. Following the death of Andrew III, a war of succession for the Hungarian throne broke out between
Charles of Anjou and
Wenceslaus of Přemyslid. Along with the overwhelming majority of the Hungarian prelates, Andrew supported the claim of the
Bohemian prince. He was member of that diplomatic mission led by Archbishop John Hont-Pázmány, along with several bishops and barons, who met
Wenceslaus II in
Hodonín in August 1301, where the king accepted their offer in his eleven-year-old son's name. Andrew was present at the coronation of Wenceslaus in
Székesfehérvár on 27 August 1301. In the upcoming years (1302–1303), the prelates – plausibly including Andrew – switched their support from Wenceslaus to Charles of Anjou, whose candidacy was also supported by the Holy See. The local powerful lord, Amadeus Aba was considered one of the strongest domestic partisans of the Neapolitan pretender too, who also resided in his territory (i.e. also the diocese of Eger) in the period between 1304 and 1306. By that time, the elderly Andrew retired from national affairs. He was last mentioned as a living person in 1305. He died in still that year or early 1306, when his successor
Martin was elected Bishop of Eger. ==References==