The location of Przemyśl castle and the earlier settlement lay on an important river crossing on a trade route running from the Black Sea to the Baltic Sea and through the Carpathian passes, and was a site of a fortified grod belonging to the Lendians (Lendizi), who were a West Slavic tribe descended from the White Croats.
In 1018, the Polish king Bolesław I Chrobry recaptured Przemyśl and built a stone Romanesque rotunda and palatium complex. Later, Casimir III the Great was responsible for the building of a Gothic castle in 1340, of which only a gate in Ogive style survives to this day. The buildings were damaged by the invading Vlachs in 1498, and rebuilt once again for Piotr Kmita Sobieński.
Przemyśl town elder Marcin Krasicki began the reconstruction of the castle in the Renaissance style in 1616. The works were supervised by the Italian architect Galleazzo Appiani. Towers were raised and attics finished, and more housing was attached, however after Krasicki's death, the reconstruction of the castle stopped.
From 1759 to 1762, Przemyśl mayor and future Polish king Stanislaw Poniatowski rebuilt the castle, rebuilding the ruins of two towers, the wall between them, building a new castle and adding stepped buttresses.
After the partition of the Commonwealth, the Austrians stationed troops in the castle. Eventually in 1865, the castle was handed over the city where from 1884 the dramatic society Fredreum has been based. During World War I, the Austrians held two thousand Russian prisoners in the castle. More restoration of the castle was carried out in 1920, and in 1980 two corner towers and curtain wall between them were rebuilt.References:
The eight towns in south-eastern Sicily, including Ragusa, were all rebuilt after 1693 on or beside towns existing at the time of the earthquake which took place in that year. They represent a considerable collective undertaking, successfully carried out at a high level of architectural and artistic achievement. Keeping within the late Baroque style of the day, they also depict distinctive innovations in town planning and urban building. Together with seven other cities in the Val di Noto, it is part of a UNESCO World Heritage Site.
In 1693 Ragusa was devastated by a huge earthquake, which killed some 5,000 inhabitants. Following this catastrophe the city was largely rebuilt, and many Baroque buildings from this time remain in the city. Most of the population moved to a new settlement in the former district of Patro, calling this new municipality 'Ragusa Superiore' (Upper Ragusa) and the ancient city 'Ragusa Inferiore' (Lower Ragusa). The two cities remained separated until 1926, when they were fused together to become a provincial capital in 1927.