Initially, Ivan III proclaimed his first wife's son, Ivan the Young, his successor and co-ruler. But in 1490 he died, leaving a 6-year-old son Dmitry. As a result there were two pretenders to the throne - Dmitry and 10-year-old Vasily, a son of Ivan III and Sofia Paleolog.
Afterwards, this situation was called the Dynastic Crisis: Ivan III proclaimed now his son now his grand-son the successor according to the development of the court intrigues until in the spring of 1502 Dmitry Ivanovich together with his mother were imprisoned. Vasily Ivanovich was finally proclaimed the successor of the Grand Duke of Moscow.
In the last will Ivan III summed up his more than 40-years reign. He handed down to Vasily more than 60 cities while all his other sons altogether got 30 cities. Younger brothers of Vasily had no right to mint own coin, try criminal cases; escheated lands also passed to Vasily. The brothers swore to obey Vasily in everything, and in case of his death submit to his elder son - their nepnep.