national affiliation; Rybnik continued to be part of the Kingdom of Poland, until most of Silesia became a fiefdom of the Bohemian Crown in 1327, however Rybnik was still ruled by local Polish dukes of the Piast dynasty until 1336. The city continued to grow and developed into a regional trade centre. In the 15th century, the Hussites devastated the city, before being eventually defeated in a decisive battle on a hill nearby in 1433, with Poles and Czechs fighting on both sides. Around 1469 the city passed under Hungarian suzerainty, and in 1490 it fell back to Bohemia. From 1521 Rybnik was again ruled by Polish Piast dukes, as it was integrated with the Duchy of Opole and Racibórz, before in 1532 it eventually was incorporated into Bohemia, which itself came under the authority of the Habsburg crown. Then the city became the capital of a state country held by various noble families, including the Polish Węgierski family of Rola coat of arms from 1682 until the state country's dissolution in 1788. At the beginning of the War of the Austrian Succession between Frederick II of Prussia (the Great) and the Habsburg empress Maria Theresa of Austria, most of Silesia, including Rybnik, was annexed by Prussia in 1740, which Austria eventually recognized in 1763. In the 18th century, Rybnik belonged to the tax inspection region of Prudnik. Coal mining gained importance for Rybnik's economy as early as the 18th century. In 1871, Prussia, including Rybnik, merged into the German Empire, the first modern German nation state. At this point, Poland had already ceased to exist as an independent state, having been divided between Prussia, Austria and Russia in the Third Partition of Poland of 1795. With the intensification of Germanization and anti-Polish policies in the German Empire in the late 19th and early 20th century, the ethnically mixed region of Upper Silesia became affected by growing tensions between German nationalists and indigenous Poles. After the end of World War I in 1918, the Polish state was finally restored. Amidst an atmosphere of ethnic unrest, the Polish Silesian Uprisings broke out, the first of which (in 1919) was centered on Rybnik, and the Upper Silesia plebiscite was held in 1921 to determine the future state affiliation. The lowest share of pro-German votes was registered in the districts of Rybnik (34.7%) and Pszczyna (25.9%). However, in the city of Rybnik, 70.8%