Next to the city of Eger stood a castle that was destroyed by the Mongols in the 13th century. After that, the Bishop of Eger set up a new castle in the town on a hill. In the 15th century, a Gothic palace was built in the castle walls. Eger Castle became famous in 1552 when the Ottoman army besieged the city with about 40,000 soldiers, while there were 2100 defenders. The Turks retreated after huge losses, while at the end of the siege there were 1700 living defenders. At the end of the 16th century, Ottoman troops captured the castle. A mosque and a Turkish bath were built in the city, still standing today.