 The location of the town has been inhabited for a long time.In 1895 remains of a settlement dated to 300-1000 AD were discovered near the town on the shores of Lake Arys.The present settlement was founded during by the Grand Master of the Teutonic Order Konrad von Erlichshausen in 1443.