the locals, was also that when Anna - wife of Vytautas the Great, was refreshing herself in the river of Nevėžis, and her personal servant got startled by crayfish in river waters (crayfish in lithuanian is Vėžys) - and yelled "Pani, viažys" so Anna would be careful. This was not documented, but is well known story among people from local areas. Panevėžys was first mentioned evidently on 7 September 1503 in documents signed by the Grand Duke Alexander Jagiellon, who granted the town building rights to construct a church and other structures. Alexander Jagiellon is considered as the founder of the city, which celebrated its 500th anniversary in 2003; two renowned monuments were built in the city for this anniversary, one of which is dedicated to Alexander Jagiellon. The city lies on the old plain of the river Nevėžis and the city name means "along the Nevėžis." Panevėžys Mound with a flat top and 1.5 – 2 meters high embankments previously stood at the confluence of river Nevėžis and stream Sirupis (destroyed in the 19th – 20th centuries). Throughout the 16th century, the city maintained a status of a Royal town. Communities of Poles inhabit the area from the 13th century, and Karaites, settled in the area as early as the 14th century. A Karaite Kenesa, and a Polish Gymnasium, existed in Panevėžys until the Second World War (the Polish version of the name of the city was ). In the 16th century, the part of the city on the left bank of the river started to develop and expand further. In 1727, the Piarists, who moved to the western part of Panevėžys, built a Church of the Holy Trinity, established a monastery and a college. In 1791, Panevėžys was granted a conditional privilege to elect the city government. 19th – early 20th centuries Following the Third Partition of the Polish–Lithuanian Commonwealth in 1795, the city was assigned to the Vilna Governorate. In 1800, Panevėžys received a permission to build a town hall. In 1825, the Evangelical Lutheran Church was built in Panevėžys, and the Orthodox parish was founded in 1841. The city played an important role in both the November Uprising, and the January Uprising, and the fights for independence continued there after 1864. In 1843, Panevėžys was assigned to the Kovno Governorate and in 1866 the town hall was replaced with a City Duma. Panevėžys Teachers' Seminary was