Jarosław (jaˈrɔswaf; Yaroslav, jɐroˈslɑu̯; Yareslov; Jaroslau) is a town in south-eastern Poland, with 38,970 inhabitants, as of 30 June 2014. Situated in the Subcarpathian Voivodeship (since 1999), and previously in the Przemyśl Voivodeship (1975–1998), it is the capital of Jarosław County. Jarosław is located in the territory of the old Polish tribe of the Lendians. According to tradition, the town was established in 1031 by Yaroslav the Wise, after the area was annexed from Poland by the Kievan Rus', although the first confirmed mention of the town comes from 1152. The region was eventually regained by Poland, and the settlement was granted Magdeburg town rights by Polish Duke Władysław Opolczyk in 1375. The city quickly developed as an important trade centre and port on the San River, reaching the period of its greatest prosperity in the 16th and 17th centuries. It had trade routes linking Silesia with Ruthenia, Gdańsk, and Hungary. Merchants from such distant countries as Spain, England, Finland, Armenia and Persia arrived for the annual three-week-long fair on the feast of the Assumption. In 1574 a Jesuit college was established in Jarosław. Jarosław was a private town of Polish nobility, including the Tarnowski, Jarosławski, Odrowąż, Kostka, Sieniawski, Zamoyski, Wiśniowiecki, Koniecpolski, Sobieski, Sanguszko and Czartoryski families. The Jarosławski family of Leliwa coat of arms hailed from the town. In the 1590s Tatars from the Ottoman Empire pillaged the surrounding countryside. (See Moldavian Magnate Wars, The Magnate Wars (1593–1617), Causes.) They were unable to overcome the city's fortifications, but their raids started to diminish the city's economic strength and importance. Outbreaks of bubonic plague in the 1620s, and the invasion known as the Swedish Deluge in 1655–60 further undermined the city's prominence. In March 1656, led by Polish national hero Stefan Czarniecki, the Poles defeated the invading Swedes under King Charles X Gustav in the Battle of Jarosław.