 The city was inherited by Boleslaus of Masovia the heir to both the Piast dynasty on his father's side, and the Romanovich dynasty on his mother's side.He took the name of "Yuriy" and converted to Eastern Orthodoxy but failed to gain the support of the local nobles and was eventually poisoned by them.The city 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.