Question: The War of the Priests, was a conflict in the Polish province between Nicolaus Von Tüngen and what Grand Duke of Lithuania from 1440 and King of Poland from 1447, until his death?
Context: The Jagiellonian dynasty was a royal dynasty, founded by Jogaila, the Grand Duke of Lithuania, who in 1386 was baptized as Władysław, married Queen regnant (also styled "King") Jadwiga of Poland, and was crowned King of Poland as Władysław II Jagiełło.  The dynasty reigned in several Central European countries between the 14th and 16th centuries.  Members of the dynasty were Kings of Poland (1386–1572), Grand Dukes of Lithuania (1377–1392 and 1440–1572), Kings of Hungary (1440–1444 and 1490–1526), and Kings of Bohemia (1471–1526). Casimir IV KG (Polish: "Kazimierz IV Andrzej Jagiellończyk" ; Lithuanian: "Kazimieras Jogailaitis" ; 30 November 1427 – 7 June 1492 ) of the Jagiellonian dynasty was Grand Duke of Lithuania from 1440 and King of Poland from 1447, until his death.  He was one of the most active Polish rulers, under whom Poland, by defeating the Teutonic Knights in the Thirteen Years' War recovered Pomerania, and the Jagiellonian dynasty became one of the leading royal houses in Europe.  He was a strong opponent of aristocracy, and helped to strengthen the importance of Parliament and the Senate. Andrei of Polotsk (Belarusian: Андрэй Альгердавіч , Lithuanian: "Andrius Algirdaitis" Polish: "Andrzej Olgierdowic" , ca. 1325 – 12 August 1399, in the Battle of the Vorskla River) was the eldest son of Algirdas, Grand Duke of Lithuania, and his first wife Maria of Vitebsk.  He was Duke of Pskov (through his deputy Yuri, 1342–1348) and Polotsk (1342–1387).  As the eldest son of the Grand Duke, Andrei claimed his right to the throne after his father's death in 1377.  Algirdas left Jogaila, his eldest son with his second wife Uliana of Tver, as the rightful heir.  Andrei's rivalry with Jogaila, Grand Duke of Lithuania and later King of Poland, eventually led to his demise. The Union of Horodło or Pact of Horodło was a set of three acts signed in the town of Horodło on 2 October 1413.  The first act was signed by Władysław II Jagiełło, King of Poland, and Vytautas, Grand Duke of Lithuania.  The second and third acts were composed by the Polish nobility (szlachta) and Lithuanian boyars respectively.  The union amended the earlier Polish–Lithuanian unions of Krewo and Vilnius–Radom.  Politically, Lithuania received more autonomy as, after the death of Vytautas, the Lithuanian nobles could choose another Grand Duke instead of passing the title to Władysław II Jagiełło or his heir.  However, culturally, Lithuania and Poland grew closer.  Lithuania adopted Polish institutions of castellans and voivodes. Catholic Lithuanian nobles and church officials were granted equal rights with the Polish nobles and clergy.  Forty-seven selected Lithuanian nobles were adopted by Polish families and granted Polish coats of arm.  Thus the union signified the beginnings of Polonization of Lithuanian culture and the rise of the Lithuanian nobility.  It was one of the major steps towards the modernization and Europeanization of Lithuania. Sigismund Kęstutaitis (Lithuanian: "Žygimantas I Kęstutaitis" ; Polish: "Zygmunt Kiejstutowicz" ; c. 1365 – 20 March 1440) was the Grand Duke of Lithuania from 1432 to 1440.  Sigismund was his baptismal name; Sigismund's pagan Lithuanian birth name is unknown.  He was the son of the Grand Duke of Lithuania Kęstutis and his wife Birutė. The War of the Polish Succession or the Habsburg-Polish War took place from 1587 to 1588 over the election of monarch after the death of King of Poland and Grand Duke of Lithuania Stephen Báthory.  The war was fought between factions of Sigismund III Vasa and Maximilian III, with Sigismund eventually being crowned King of Poland and Grand Duke of Lithuania.  Two major battles of this conflict included the Siege of Kraków, in which Maximilian III failed to capture the capital of the Commonwealth, and the Battle of Byczyna, in which Maximilian was forced to surrender.  Sigismund's victory was significantly the doing of Chancellor and Hetman Jan Zamoyski, who stood behind both the political intrigue and the military victories of this conflict. Nicolaus von Tüngen (pl.  "Mikołaj Tungen", German: "Nikolaus von Tüngen" ; died 14 February 1489 in Heilsberg (Lidzbark Warmiński)) was bishop of Warmia from 1467 until 1489. The War of the Priests (1467-1479, German: "Pfaffenkrieg" , Polish: "wojna popia, wojna księża" ) was a conflict in the Polish province of Warmia between the King of Poland Casimir IV and Nicolaus von Tüngen, the new bishop of Warmia chosen – without the king's approval – by the Warmian chapter.  The latter was supported by the Teutonic Knights, by this point vassals of Poland, who were seeking a revision of the recently signed Second Peace of Toruń. Michael Žygimantaitis (Lithuanian: "Mykolas Žygimantaitis" , Polish: "Michał Bolesław Zygmuntowicz" ; before 1406 – shortly before February 10, 1452 in Moscow) was the last male descendant of Kęstutis, Grand Duke of Lithuania.  He supported his father Sigismund Kęstutaitis in power struggles with Švitrigaila.  In 1435 he led his father's army to victory in the Battle of Pabaiskas.  After his father's assassination in 1440, Michael unsuccessfully fought against Casimir IV Jagiellon for the title of the Grand Duke of Lithuania.  At first Michael was supported by Samogitia, but in 1441 Casimir issued a privilege confirming Samogitia's semi-autonomous status and thus avoiding a civil war.  Until 1447 he was supported by Dukes of Masovia.  In 1448 Michael asked help from the Crimean Khanate.  With their help he attacked and shortly took control of Kiev, Starodub, Novhorod-Siversky.  Soon he was captured and transported to the Grand Duchy of Moscow where he died under unclear circumstances (possibly poisoned).  He was buried in Vilnius Cathedral. The Lithuanian Civil War of 1389–92 was the second civil conflict between Jogaila, King of Poland and Grand Duke of Lithuania, and his cousin Vytautas.  At issue was control of the Grand Duchy of Lithuania, then the largest state in Europe.  Jogaila had been crowned King of Poland in 1386; he installed his brother Skirgaila as ruler of Lithuania.  Skirgaila proved unpopular and Vytautas attempted to depose him.  When his first attempt to take the capital city of Vilnius failed, Vytautas forged an alliance with the Teutonic Knights, their common enemy – just as both cousins had done during the Lithuanian Civil War between 1381 and 1384.  Vytautas and the Knights unsuccessfully besieged Vilnius in 1390.  Over the next two years it became clear that neither side could achieve a quick victory, and Jogaila proposed a compromise: Vytautas would become Grand Duke and Jogaila would remain Superior Duke.  This proposal was formalized in the Ostrów Agreement of 1392, and Vytautas turned against the Knights.  He went on to reign as Grand Duke of Lithuania for 38 years, and the cousins remained at peace.
Answer: Casimir IV