The protracted period of war between the Lithuanians and the Teutonic Knights was ended on 12 October 1398 by the Treaty of Salynas, named after the islet in the Neman River where it was signed. Lithuania agreed to cede Samogitia and assist the Teutonic Order in a campaign to seize Pskov, while the Order agreed to assist Lithuania in a campaign to seize Novgorod. Shortly afterwards, Vytautas was crowned as a king by local nobles; but the following year his forces and those of his ally, Khan Tokhtamysh of the White Horde, were crushed by the Timurids at the Battle of the Vorskla River, ending his imperial ambitions in the east and obliging him to submit to Władysław's protection once more.