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:Celje Castle was once the largest fortification on Slovenian territory. The first fortified building on the site (a Romanesque palace) was built in the first half of the 13th century by the Counts of Heunburg from Carinthia on the stony outcrop on the western side of the ridge where the castle stands. It had five sides, or four plus the southern side, which was a natural defence. The first written records of the castle date back to between 1125 and 1137; it was probably built by Count Gunter. In the western section of the castle, there was a building with several floors. Remains of the walls of this palatium have survived. In the eastern section, there was an enclosed courtyard with large water reservoirs. The eastern wall, which protects the castle from its most exposed side, was around three metres thicker than the rest of the curtain wall. The wall was topped with a parapet and protected walkway.