The history of Wawel is deeply intertwined with the history of the Polish lands and Polish royal dynasties already in the Middle Ages. The political and dynastic tensions that led to the ascendance of Kraków as the royal seat are sophisticated, but for most of the Middle Ages and the Renaissance Wawel was the seat of the national government and the Diet (assembly). As the Polish–Lithuanian Commonwealth formed and grew, Wawel became the seat of one of Europe's largest and most important states. This status was only lost when the capital was moved to Warsaw in 1596 (designated officially in 1793).