Duchy of Masovia was a district principality and a fiefdom of the Kingdom of Poland, existing during the Middle Ages. The state was centered in Mazovia in the northeastern Kingdom of Poland, and during its existence, its capital was located in the Płock, Czersk and Warsaw. It was formed in 1138 from the territories of the Kingdom of Poland, following its fragmentation, that was started by the testament of Bolesław III Wrymouth. The country existed in the years: 1138–1275, 1294–1310, 1370–1381, and 1495–1526, between that time, going through fragmentations of its territory into smaller duchies and its unification. The states formed during its fragmentation were duchies of Kuyavia, Dobrzyń, Czersk, Płock, Warsaw, Rawa and Belz. In 1526, the country was incorporated into the Kingdom of Poland. History The lands of the Masovians east of the Vistula river had been conquered by the Piast duke Mieszko I of Poland (960–992) and formed a constituent part of his Civitas Schinesghe. The Masovian Diocese of Płock was established in 1075. Following the death of Duke Bolesław III Wrymouth in 1138, as specified by his testament, the Masovian province was governed by his second son Bolesław IV the Curly, who, after he had expelled his elder half-brother Władysław II, in 1146 became Duke of Poland. His Masovian realm also comprised the adjacent lands of Kujawy (Kuyavia) on the west bank of the Vistula. Among the Piast Dukes of Masovia, Bolesław's IV nephew Konrad I was Polish high duke from 1229 to 1232 and again from 1241 to 1243; he was the ruler who in 1226 called the Teutonic Order for help against the pagan Old Prussians threatening the northern borders of his territory. In turn he ceded the Prussian Chełmno Land (Kulmerland) to the knights in 1230; according to the Golden Bull of Rimini (dated 1226), issued by the Hohenstaufen emperor Frederick II, these lands became the nucleus of the Order State. In 1233 Konrad gave Kujawy to his second son Casimir I, while Masovia passed to the first-born Bolesław I upon his death in 1247, succeeded by the youngest brother Siemowit I the next year. While Siemowit's son Duke Konrad II (1264–1294) moved his residence to Czersk he and his brother Bolesław II entered into a long-term conflict over the Polish seniorate with their Kujawy relatives and the Silesian Piasts, which estranged them from the Piast monarchy. When the kingdom was finally restored