Question: To satisfy what dynasty, did the Duchy of Pomerania get partitioned several times who was later granted as a whole and the Principality of Rügen as a fief to the dukes of both Pomerania-Stettin and Pomerania-Wolgast, by a King of Bohemia and the first King of Bohemia to also become Holy Roman Emperor?

<P0-S0> The monarchs of Prussia were members of the House of Hohenzollern who were the hereditary rulers of the former German state of Prussia from its founding in 1525 as the Duchy of Prussia. <P0-S1>  The Duchy had evolved out of the Teutonic Order, a Roman Catholic crusader state and theocracy located along the eastern coast of the Baltic Sea. <P0-S2>  The Teutonic Knights were under the leadership of a Grand Master, the last of whom, Albert, converted to Protestantism and secularized the lands, which then became the Duchy of Prussia. <P0-S3>  The Duchy was initially a vassal of the Kingdom of Poland, as a result of the terms of the Prussian Homage whereby Albert was granted the Duchy as part of the terms of peace following the Prussian War. <P0-S4>  When the main line of Prussian Hohenzollerns died out in 1618, the Duchy passed to a different branch of the family, who also reigned as Electors of Brandenburg in the Holy Roman Empire. <P0-S5>  While still nominally two different territories, Prussia under the suzerainty of Poland and Brandenburg under the suzerainty of the Holy Roman Empire, the two states are known together historiographically as Brandenburg-Prussia. <P0-S6>  Following the Second Northern War, a series of treaties freed the Duchy of Prussia from any vassalage to any other state, making it a fully sovereign Duchy in its own right. <P0-S7>  This complex situation (where the Hohenzollern ruler of the independent Duchy of Prussia was also a subject of the Holy Roman Emperor as Elector of Brandenburg) laid the eventual groundwork for the establishment of the Kingdom of Prussia in 1701. <P0-S8>  For diplomatic reasons, the rulers of the state were known as the King in Prussia from 1701 to 1772; largely because they still owed fealty to the Emperor as Electors of Brandenburg, the "King in Prussia" title (as opposed to "King of Prussia") avoided offending the Emperor. <P0-S9>  As the Prussian state grew through several wars and diplomatic moves throughout the 18th century, it became apparent that Prussia had become a Great Power that did not need to submit meekly to the Holy Roman Empire. <P0-S10>  By 1772, the pretense was dropped, and the style "King of Prussia" was adopted. <P0-S11>  Thus it remained until 1871, when in the aftermath of the Franco-Prussian War, the King of Prussia Wilhelm I was crowned German Emperor. <P0-S12>  From that point forward, though the Kingdom of Prussia retained its status as a constituent state of the German Empire, all remaining Kings of Prussia also served as German Emperor, and that title took precedence. <SEP> <P1-S0> The German–Polish War which took place from 1002 to 1018 consisted of a series of struggles between the Ottonian king Henry II of Germany (Holy Roman Emperor from 1014) and the Polish Piast ruler Bolesław I the Brave. <P1-S1>  The locus of conflict was the control of Lusatia, Upper Lusatia, as well as Bohemia, Moravia and Slovakia. <P1-S2>  The fighting ended with the Peace of Bautzen in 1018, which left Lusatia and Upper Lusatia as a fief to Poland, and Bohemia became a duchy in the Holy Roman Empire. <SEP> <P2-S0>  The partitions were named after the ducal residences: Pomerania-Barth, -Demmin, -Rügenwalde, -Stettin, -Stolp, and -Wolgast. <P2-S1>  None of the partitions had a hereditary character, the members of the House of Pomerania inherited the duchy in common. <P2-S2>  The duchy thus continued to exist as a whole despite its division. <P2-S3>  The only exception was made during a war with the Margraviate of Brandenburg, when in 1338 Barnim III of Pomerania-Stettin was granted his partition as a fief directly from the Holy Roman Emperor, while Pomerania-Wolgast remained under formal Brandenburgian overlordship. <P2-S4>  However, already in 1348, German king and later emperor Charles IV again granted the Duchy of Pomerania as a whole and the Principality of Rügen as a fief to the dukes of both Pomerania-Stettin and Pomerania-Wolgast, nullifying Brandenburg's claims by granting Imperial immediacy. <P2-S5> The Duchy of Pomerania was partitioned several times to satisfy the claims of the male members of the ruling House of Pomerania dynasty. <SEP> <P3-S0> Charles IV (Czech: "Karel IV." <P3-S1>  , Latin: "Carolus IV" ; 14 May 1316 – 29 November 1378), born Wenceslaus, was a King of Bohemia and the first King of Bohemia to also become Holy Roman Emperor. <P3-S2>  , German: "Karl IV." <P3-S3>  He was a member of the House of Luxembourg from his father's side and the House of Přemyslid from his mother's side, which he emphasised, because it gave him two saints as direct ancestors.