Casimir I the Restorer
Between 1038 and 1039 Duke Casimir I the Restorer returned to Poland and it's believed that Kraków first became a royal residence and the capital of Poland at this time.