Kraków (Cracow) is one of the largest and oldest cities in Poland, with the urban population of 756,441 (2008). Situated on the Vistula river (Polish: Wisła) in the Lesser Poland region, the city dates back to the 7th century. It was the capital of Poland from 1038 to 1596, the capital of the Grand Duchy of Kraków from 1846 to 1918, and the capital of Kraków Voivodeship from the 14th century to 1999. It is now the capital of the Lesser Poland Voivodeship.
The earliest known settlement on the present site of Kraków was established on Wawel Hill, and dates back to the 4th century. Legend attributes the town's establishment to the mythical ruler Krakus, who built it above a cave occupied by a ravenous dragon, Smok Wawelski. Many knights unsuccessfully attempted to oust the dragon by force, but instead, Krakus fed it a poisoned lamb, which killed the dragon. The city was free to flourish. Dragon bones, most likely that of mammoth, are displayed at the entrance of the Wawel Cathedral. Before the Polish state had been formed, Kraków was the capital of the tribe of Vistulans, subjugated for a short period by Great Moravia. After Great Moravia was destroyed by the Hungarians, Kraków became part of the kingdom of Bohemia. The first appearance of the city's name in historical records dates back to 966, when a Sephardi Jewish traveller, Abraham ben Jacob, described Kraków as a notable commercial centre under the rule of the then duke of Bohemia; and mentioned the Baptism of Prince Mieszko I as the first historical ruler of Poland. Mieszko took Kraków from Bohemians and incorporated it into the holdings of the Piast dynasty towards the end of his reign.