Samogitian uprisings

The Knights were soundly defeated by the joint Polish–Lithuanian forces, but Vytautas and Jogaila, King of Poland, were unable to capitalize on their victory.

[2] The treaty awarded Samogitia up to the Dubysa River to the Knights for their support to Jogaila against Vytautas in the Lithuanian Civil War (1381–84).

Eventually Vytautas agreed to the Treaty of Salynas, signed in October 1398, as he sought to stabilize the western front while preparing for a large expedition into east against the Golden Horde, resulting in the disastrous Battle of the Vorskla River.

The Order attempted to take control of Samogitia: even if they had the legal title to the land, local population resisted Teutonic rule and had to be subdued.

[5] The Knights took 500 hostages[6] into Prussia to discourage resistance, while loyal Samogitian nobles were rewarded with gifts (wool, salt, clothes).

[5] Vytautas agreed to build the castle as compensation for two Teutonic fortresses he burnt during the Lithuanian Civil War (1389–92).

In February 1399, Teutonic and Livonian forces raided central Samogitia and locals were unable to mount effective defense.

[7] The Knights tried to maintain friendly relationship with Vytautas: they warmly welcomed his wife Anna during her pilgrimage to the tomb of Dorothy of Montau and sent him gifts.

[10] Jogaila's brother Švitrigaila joined the war in January 1402 on the side of the Teutonic Knights as he laid claims to the throne of the Grand Duchy of Lithuania.

[11] He confirmed the Treaty of Salynas in exchange for Order's military assistance and drew Vytautas into open war against the Knights.

In July, Švitrigaila lead the Knight's army south of Vilnius (Medininkai, Ashmyany, Šalčininkai)[12] hoping to capture the capital city.

[14] The Teutonic Knights also waged a propaganda war by sending multiple complaints to the Pope, church officials, and western rulers.

In 1405 Vytautas put his words into action and helped the Knights to take control of environs of Raseiniai, Viduklė, Ariogala.

[15] The Knights attempted to implement their administrative system: they measured land, counted residents, appointed local officers, and sent their own colonists.

[16] However, the friendly relationship between Vytautas and the Teutonic Knights was somewhat strained after election of Grand Master Ulrich von Jungingen, who was less inclined to ally with Lithuania.

[19] In late 1408, Vytautas and Jogaila met in Navahrudak and agreed to support the Samogitians and provoke the Knights into declaring war against Poland.

[11] Poland had its own territorial quarrels with the Knights over the Dobrzyń Land and wanted to diminish Prussian influence in Lithuania while preserving the Polish–Lithuanian union.

[22] While all parties presented their arguments to the mediator, Vytautas and Jogaila agreed to a joint military campaign, which was executed in summer 1410.