 The first acclaimed ruler of Poland, Mieszko I, took Kraków from the Bohemians and incorporated it into the holdings of the Piast dynasty towards the end of his reign.In 1038, Kraków became the seat of the Polish government.By the end of the 10th century, the city was a leading centre of trade.