 The primary purpose of the treaty was to guarantee the neutrality of the Teutonic Knights in the power struggle between Jogaila and his brothers, Dukes Andrei of Polotsk and Dmitry of Bryansk, and their ally Dmitri Donskoi, Grand Duke of Moscow.Jogaila, having secured his western front, directed his attention to the east, where he allied himself with the Golden Horde for the upcoming Battle of Kulikovo against the Grand Duchy of Moscow.Some historians blamed Uliana of Tver, mother of Jogaila, or his adviser Vaidila, others pointed out generational differences