Kyiv became a part of the Grand Duchy of Lithuania after the Battle at Blue Waters in 1362, when Algirdas, Grand Duke of Lithuania, beat a Golden Horde army. During the period between 1362 and 1471, the city was ruled by Lithuanian princes from different families. By order of Casimir Jagiellon, the Principality of Kiev was abolished and the Kiev Voivodeship was established in 1471. Lithuanian statesman Martynas Goštautas was appointed as the first voivode of Kiev the same year; his appointment was met by hostility from locals.