Esztergom was the capital of Hungary from the 10th till the mid-13th century when King Béla IV of Hungary moved the royal seat to Buda. During the same period, the castle of Esztergom was built on the site of ancient Roman castrum. It served not only as the royal residence until the 1241 (the Mongol invasion), but also as the center of the Hungarian state, religion, and Esztergom county.
After changing his residence to Budapest, Béla IV gave the palace and castle to the archbishop. Following these events, the castle was built and decorated by the bishops. The center of the king’s town, which was surrounded by walls, was still under royal authority. A number of different monasteries did return or settle in the religious center.
Meanwhile, the citizenry had been fighting to maintain and reclaim the rights of towns against the expansion of the church within the royal town. In the chaotic years after the fall of the House of Árpád, Esztergom suffered another calamity: in 1304, the forces of Wenceslaus II, the Czech king occupied and raided the castle. In the years to come, the castle was owned by several individuals: Róbert Károly and then Louis the Great patronized the town.
The Ottoman conquest of Mohács in 1526 brought a decline to the previously flourishing Esztergom as well. In the Battle of Mohács, the archbishop of Esztergom died. In the period between 1526 and 1543, when two rival kings reigned in Hungary, Esztergom was besieged six times. At times it was the forces of Ferdinand I or John Zápolya, at other times the Ottomans attacked. Finally, in 1530, Ferdinand I occupied the castle. He put foreign mercenaries in the castle, and sent the chapter and the bishopric to Nagyszombat and Pozsony.
However, in 1543 Sultan Suleiman I attacked the castle and took it. Esztergom became the centre of an Ottoman sanjak controlling several counties, and also a significant castle on the northwest border of the Ottoman Empire. In the 17th century Esztergom was besieged and conquered several times during the Ottoman-Habsburg Wars. Most of the buildings in the castle and the town that had been built in the Middle Ages were destroyed during this period, and there were only uninhabitable, smothered ruins to welcome the liberators.
In 1761 the bishopric regained control over the castle, where they started the preliminary processes of the reconstruction of the new religious center: the middle of the Várhegy (Castle Hill), the remains of Saint Stephen and Saint Adalbert churches were carried away to provide room for the new cathedral.References:
German crusaders known as the Livonian Brothers of the Sword began construction of the Cēsis castle (Wenden) near the hill fort in 1209. When the castle was enlarged and fortified, it served as the residence for the Order's Master from 1237 till 1561, with periodic interruptions. Its ruins are some of the most majestic castle ruins in the Baltic states. Once the most important castle of the Livonian Order, it was the official residence for the masters of the order.
In 1577, during the Livonian War, the garrison destroyed the castle to prevent it from falling into the control of Ivan the Terrible, who was decisively defeated in the Battle of Wenden (1578).
In 1598 it was incorporated into the Polish-Lithuanian Commonwealth and Wenden Voivodship was created here. In 1620 Wenden was conquered by Sweden. It was rebuilt afterwards, but was destroyed again in 1703 during the Great Northern War by the Russian army and left in a ruined state. Already from the end of the 16th century, the premises of the Order's castle were adjusted to the requirements of the Cēsis Castle estate. When in 1777 the Cēsis Castle estate was obtained by Count Carl Sievers, he had his new residence house built on the site of the eastern block of the castle, joining its end wall with the fortification tower.
Since 1949, the Cēsis History Museum has been located in this New Castle of the Cēsis Castle estate. The front yard of the New Castle is enclosed by a granary and a stable-coach house, which now houses the Exhibition Hall of the Museum. Beside the granary there is the oldest brewery in Latvia, Cēsu alus darītava, which was built in 1878 during the later Count Sievers' time, but its origins date back to the period of the Livonian Order. Further on, the Cēsis Castle park is situated, which was laid out in 1812. The park has the romantic characteristic of that time, with its winding footpaths, exotic plants, and the waters of the pond reflecting the castle's ruins. Nowadays also one of the towers is open for tourists.