Historian Romas Batūra identifies the city with Voruta, one of the castles of Mindaugas, who was King of Lithuania after coronation in 1253. During the reign of Grand Dukes Butvydas and Vytenis, a city started emerging from a trading settlement and the first Franciscan Catholic church was built.