In 1320 the city was incorporated into the Grand Duchy of Lithuania as dowry of the Princess Maria, the first wife of Grand Duke of Lithuania Algirdas.
I 1320 blev byen inddraget i storfyrstedømmet Litauen som medgift for Prinsesse Maria, storfyrste Algirdas af Litauens første hustru.