 St. George's Chapel was also built at that time.In the 16th and 17th centuries, other objects were gradually built.The castle's purpose was to defend the empire against Ottoman invasion as well as peasant revolt.