Eger's original castle was destroyed by the Mongols and rebuilt in 1248 for the city's protection.