The Golden Liberty of the nobles began to develop under Casimir's rule, when in return for their military support, the king made a series of concessions to the nobility, and establishing their legal status as superior to that of the townsmen.
When Casimir the Great died in 1370, leaving no legitimate male heir, the Piast dynasty came to an end.
However, the transition from paganism was not a smooth and instantaneous process for the rest of the population as evident from the pagan reaction of the 1030s.
Poland began to form into a recognizable unitary and territorial entity around the middle of the 10th century under the Piast dynasty.
During the 13th and 14th centuries, Poland became a destination for German, Flemish and to a lesser extent Walloon, Danish and Scottish migrants.