At the same time it began joining the southern and western counties on the border with Lithuania. Under the authority of Moscow here and then turn the small Orthodox princes with their ancestral lands. First transmitting Odoevsky princes, then - and Vorotynskys Arsenyevsky. These petty rulers constantly engage in a quarrel with their Lithuanian neighbors - in fact, on the southern borders did not stop the war, but also in Moscow and Vilnius has long maintained the appearance of the world. In 1492, died Casimir Lithuanian, table passed to his son Alexander. Ivan, together with the Crimean Khan Giray Mengli immediately began a war against him. From the beginning, things went happily to Moscow. Governors took Meshchovsk, Serpeysk, Vyazma; Vyazemsky mezetskie, Novosilsky princes and other Lithuanian owners willy-nilly, passed in the service of the Moscow State. In the end, Alexander had to admit all these transitions. In 1503, Lithuania and Russia was signed truce, in which Ivan retained substantially all the conquered land. Shortly afterwards he died.