Gliwice established a joint campus in Rybnik to improve academic training opportunities in the area. Population Historical population Historically, Rybnik was a small town, with population exceeding 1,000 people only in the late 1700s. It was similar in size to neighboring Żory and Wodzisław Śląski, around half the size of Gliwice and 1/3 the size of Racibórz. The population development accelerated after Upper Silesia was annexed by Prussia in 1740. In 1818, Rybnik became a county seat and in 1856 Rybnik was connected with Racibórz by rail. Two years later, in 1858, Rybnik gained a rail connection with Katowice, further accelerating growth. While the discovery of large coal deposits around Rybnik in late 1800s and early 1900s caused capital inflow and population growth of neighboring villages and settlements, Rybnik continued to be primarily a market town rather than transform into a large industrial city like other towns in the region, particularly in the Upper Silesian Industrial Region. This changed after World War II, when the Polish communist government doubled-down on its heavy industrialization platform, increasing coal production in existing coal mines around Rybnik and building a new city for miners nearby. Due to its central location and existing infrastructure, Rybnik became the center of the Rybnik Coal Area, growing to 44,400 people in 1972. In the 1970s, under administrative reform, Rybnik annexed a number of neighboring mining towns and villages, growing to 118,200 by the end of the decade. Labor shortages on the local market, created in part by emigration to Germany through the family reunification schemes since the 1950s, motivated large state enterprises to recruit workers in other parts of the country. As a result, by 1970s and 80s approximately 30% of people in Rybnik were recent internal migrants. That migration was a source of ethnic conflict since the 1950s, given that in the eyes of Poles from other parts of the country, indigenous Silesians were Germans, and the anti-German sentiment was still strong in Poland at the time. Rybnik's population continued to grow until the peak in 1997 at 144,943. Current population estimates On January 1, 2021, Rybnik had 137,128 inhabitants, with a population density of 955.3 per km². In 2020, age breakdown was as follows: 25,166 (18.4%) under 18, 50,183 (36.6%) aged 18–44, 31,248 (22.8%) aged 45–64, 30,531 (22.3%) 65 and older. Total fertility rate in Rybnik is 1.39 as of 2020, below the replacement level of