Its construction date is not known exactly. It is believed to have been built by the Hittites, who had a military garrison in the city. But this idea has not been confirmed based on archaeological data. The Ankara Castle, which has been in the same place since the Hittites, was repaired many times during the Romans, Byzantines and Seljuk periods, consists of the inner castle that covers the high part of the hill and the outer castle that surrounds its surroundings (the outer castle has about 20 towers). The outer fortress turns the old city of Ankara.
The castle has experienced various periods in history. BC 2nd century After the Romans invaded Galatya (Ankara region) at the beginning, the city grew and fell out of the castle. Roman Emperor Caracaila İ.S. In 217 he repaired the walls of the castle. Between 222 and 260, Emperor Severus Alexander and Velerianus were defeated by the Persians and the castle was partially destroyed. After the second half of the 7th century, the Romans began to repair the castle. Emperor Constantine made an outsider in 688. IV. While Leon repaired the castle walls in 740, the walls of the inner castle also increased. Emperor Nikephoros and Emperor Basileios also repaired the fort in the 9th century.
http://www.ankarakalesi.com/index.php?option=com_content&view=article&id=16&Itemid=4