In 1362 or 1363, Grand Duke Algirdas achieved a decisive victory in the Battle of Blue Waters against Golden Horde and stopped its further expansion in the present-day Ukraine. The victory brought the city of Kyiv and a large part of present-day Ukraine, including sparsely populated Podolia and Dykra, under the control of the expanding Grand Duchy of Lithuania. After taking Kyiv, Lithuania became a direct neighbor and rival of the Grand Duchy of Moscow.