The Treaty of Königsberg was signed in Königsberg (Królewiec) on May 26, 1390 during the Lithuanian Civil War (1389–1392) between Samogitian nobles and representatives of the Teutonic Knights. The 31-member or 30-member delegation from seven Samogitian regions (Ariogala, Kaltinėnai, Knituva, Kražiai, Medingėnai, Raseiniai, and Viduklė) arrived to Königsberg around the pentecost. They promised their loyalty to "their king" Vytautas and guaranteed trade freedom for the Knights in Samogitia. The Knights gifted the nobles with food and clothes.