After King Daniel's death, King Lev rebuilt the town around the year 1270 at its present location, choosing Lviv as his residence, and made Lviv the capital of Galicia-Volhynia. The city is first mentioned in the Halych-Volhynian Chronicle regarding the events that were dated 1256. The town grew quickly due to an influx of Polish people from Kraków, Poland, after they had suffered a widespread famine there. Around 1280 Armenians lived in Galicia and were mainly based in Lviv where they had their own Archbishop. In the 13th and early 14th centuries, Lviv was largely a wooden city, except for its several stone churches. Some of them, like the Church of Saint Nicholas, have survived to this day, although in a thoroughly rebuilt form. The town was inherited by the Grand Duchy of Lithuania in 1340 and ruled by voivode Dmytro Dedko, the favourite of the Lithuanian prince Lubart, until 1349.