After Danylo's death in 1264, he was succeeded by his son Lev, who moved the capital to Lviv in 1272 and for a time maintained the strength of Kingdom of Rus. Unlike his father, who pursued a Western political course, Lev worked closely with the Mongols, in particular cultivating a close alliance with the Tatar Khan Nogai. Together with his Mongol allies, he invaded Poland. However, although his troops plundered territory as far west as Racibórz, sending many captives and much booty back to Galicia, Lev did not ultimately gain much territory from Poland. Lev also attempted, unsuccessfully, to establish his family's rule over Lithuania. Soon after his brother Shvarn ascended to the Lithuanian throne in 1267, he had the former Lithuanian ruler Vaišvilkas killed. Following Shvarn's loss of the throne in 1269, Lev entered into conflict with Lithuania. From 1274 to 1276 he fought a war with the new Lithuanian ruler Traidenis but was defeated, and Lithuania annexed the territory of Black Ruthenia with its city Navahrudak. In 1279, Lev allied himself with king Wenceslaus II of Bohemia and invaded Poland, although his attempt to capture Kraków in 1280 ended in failure. That same year, Lev defeated Hungary and annexed part of Transcarpathia, including the city of Mukachevo. In 1292, he defeated fragmented Poland and added Lublin with surrounding areas to the territory of Kingdom of Rus.
