 In 1505, he was expelled from the Lithuanian Council of Lords by Alexander Jagiellon for participation in the Union of Mielnik of 1501.In 1516, during a border conflict, Kęsgaila commanded Samogitian forces, defeated the Teutonic Order, and captured Katyčiai.However, Albert, Duke of Prussia, recaptured the village a few months later.