After his marriage to the Christian Doubravka of Bohemia, the pagan ruler of the Polans, Mieszko I, converts to Christianity, an event considered to be the founding of the Polish state.

The period of rule by the Piast dynasty between the 10th and 14th centuries is the first major stage of the history of the Polish state. The dynasty was founded by a series of dukes listed by the chronicler Gallus Anonymous in the early 12th century: Siemowit, Lestek and Siemomys. It was Mieszko I, the son of Siemomys, who is now considered the proper founder of the Polish state at about 960 AD. The ruling house then remained in power in the Polish lands until 1370. Mieszko converted to Christianity of the Western Latin Rite in an event known as the Baptism of Poland in 966, which established a major cultural boundary in Europe based on religion. He also completed a unification of the Lechitic tribal lands that was fundamental to the existence of the new country of Poland.Following the emergence of the Polish state, a series of rulers converted the population to Christianity, created a kingdom of Poland in 1025 and integrated Poland into the prevailing culture of Europe. Mieszko's son Bolesaw I the Brave established a Roman Catholic Archdiocese in Gniezno, pursued territorial conquests and was officially crowned in 1025 as the first king of Poland. The first Piast monarchy collapsed with the death of Mieszko II Lambert in 1034, followed by its restoration under Casimir I in 1042. In the process, the royal dignity for Polish rulers was forfeited, and the state reverted to the status of a duchy. Duke Casimir's son Bolesaw II the Bold revived the military assertiveness of Bolesaw I, but became fatally involved in a conflict with Bishop Stanislaus of Szczepanw and was expelled from the country.Bolesaw III, the last duke of the early period, succeeded in defending his country and recovering territories previously lost. Upon his death in 1138, Poland was divided among his sons. The resulting internal fragmentation eroded the initial Piast monarchical structure in the 12th and 13th centuries and caused fundamental and lasting changes.

Konrad I of Masovia invited the Teutonic Knights to help him fight the Baltic Prussian pagans, which led to centuries of Poland's warfare with the Knights and the German Prussian state.In 1320, the kingdom was restored under Wadysaw I the Elbow-high, then strengthened and expanded by his son Casimir III the Great. The western provinces of Silesia and Pomerania were lost after the fragmentation, and Poland began expanding to the east. The period ended with the reigns of two members of the Capetian House of Anjou between 1370 and 1384. The consolidation in the 14th century laid the base for the new powerful kingdom of Poland that was to follow.

Doubravka of Bohemia, Dobrawa (Czech: Doubravka Přemyslovna, Polish: Dobrawa, Dąbrówka; ca. 940/45 – 977) was a Bohemian princess of the Přemyslid dynasty and by marriage Duchess of the Polans.

She was the daughter of Boleslaus I the Cruel, Duke of Bohemia, whose wife may have been the mysterious Biagota.According to earlier sources, Doubravka urged her husband Mieszko I of Poland to accept baptism in 966, the year after their marriage. Modern historians believe, however, that the change of religion by Mieszko was one of the points discussed in the Polish-Bohemian agreement concluded soon before his marriage with Doubravka. Her role in his conversion is not considered now to be as important as it is often represented in medieval chronicles.