When Polish troops invaded
Podolia, Švitrigaila arrested his brother
Jogaila, King of Poland, in Vilnius. Jogaila was released when he promised to return Podolia to the Grand Duchy of Lithuania. The
Polish nobility, led by
Zbigniew Oleśnicki, gathered in
Sandomierz in February 1431. Outraged, they voided the King's promises and demanded that Švitrigaila acknowledge his
fealty to Jogaila. Švitrigaila refused, professed full independence, and even asked
Holy Roman Emperor Sigismund to send him the crown that had been intended for Vytautas. In the same letter, Švitrigaila promised his loyalty to Sigismund and discussed a possible marriage to a daughter of
Voivode of Moldavia. Švitrigaila began organizing a wider anti-Polish coalition. He negotiated with the
Teutonic Knights, with
Holy Roman Emperor Sigismund, with
Moldavia, with the
Golden Horde, and with the dukes of the eastern lands of the
Grand Duchy of Lithuania. The most promising prospect as an ally was the
Teutonic Order, which was seeking to undo the
Polish–Lithuanian union that had led to the Order's defeat at the
Battle of Grunwald (1410). In June 1431 the Teutonic Knights and Švitrigaila signed the
Treaty of Christmemel. Švitrigaila's cause was also aided by
Moldavian forces led by
Alexander the Good, who attacked Poland in the southeast. On 25 June 1431, the Polish army invaded
Volhynia. They captured part of Volhynia,
Horodło,
Volodymyr-Volynskyi, and
Zbarazh, and defeated Švitrigaila's men near
Lutsk. However, the Poles did not succeed in capturing
Lubart's Castle. At the same time, pursuant to the Treaty of Christmemel, the Teutonic Knights declared war and invaded Poland. Finding little opposition, the Knights ravaged
Dobrzyń Land, taking the town of
Nieszawa, and tried to move on to the
Kuyavia and
Krajna regions. However, the Teutonic army was defeated on 13 September 1431
at Dąbki, near
Nakel (now Nakło nad Notecią). Švitrigaila, who was besieged in the Lubart's Castle, offered to negotiate peace on 20 August. An agreement was reached on 26 August, thus ending the so-called Lutsk War. A formal truce was signed at
Staryi Chortoryisk on 1 September until 24 June 1433. The agreement was more favorable to Poland. The truce did not solve the underlying dispute, however. The war was transformed into a diplomatic struggle, as Poland sought to turn the Lithuanian nobles against Švitrigaila. ==Coup in Lithuania==