Kaunas is the second-largest city in Lithuania. People settled in some territories of the present Kaunas during the second and first millennium BC. The town was first mentioned in written sources in 1361. In 1362, the town was captured by the Teutonic Knights, who destroyed the Kaunas Castle. In 1408 Kaunas was granted Magdeburg Rights by Vytautas the Great (1392 – 1430). The oldest part of the city is the Old Town located to the east of the confluence of the Nemunas and Neris rivers. The city has around 320 000 inhabitants.