Rybnik Castle, located on Copernicus Square, is the former seat of the Silesian Piasts and a repeatedly rebuilt structure. The history of the castle dates back to the end of the 13th century, with earlier references to a wooden stronghold that may have been built in the 12th century. The first written mention of the castle comes from 1327. During the Middle Ages, it was primarily a defensive structure, further reinforced by ponds. In the 14th century, the castle was expanded, culminating in the construction of defensive walls and a castle gate. During the Hussite Wars in the 15th century, the castle became a refuge for the inhabitants of Rybnik, who suffered significant damage. After the period of rule by the Dukes of Racibórz, the castle began to fall into disrepair due to neglect in the 16th century. Between 1579 and 1581, it was partially rebuilt by Władysław of Lobkowicz. In the 17th century, the Rybnik estate passed into the hands of Jan Bernard Prażma, who began constructing a new residence in place of the old castle. After his death, subsequent owners continued the work. In the 18th century, the Counts of Węgierski added new wings, giving the building a horseshoe shape. In 1788, the castle was purchased by the Prussian King Frederick William II, who converted it into a soldiers' asylum. In 1789, a new "Invalid's Home" was built on its site in the late Baroque and Neoclassical styles, designed by Friedrich Ilngner. The monument features a distinctive architectural form with a two-story main building and perpendicular wings. From 1842, the castle housed the District Court, and today it is home to the Regional Court. The last major reconstruction took place in 1938, and between 1990 and 2000, the building underwent a comprehensive renovation. In 2013, another phase of restoration began, including the renewal of the facade. Rybnik Castle, in addition to its judicial function, is an important element of local history and architecture, having witnessed numerous events over the centuries.