Restoration and reconstruction works, which took place during the reigns of Eastern Roman emperors Anastasius I Dicorus (r. 491–518) and Justinian I (r. 527–565), saw the castle develop into its final state prior to its ruin. The castle was most likely in use until 639 with the arrival of Arab Muslims in the beginning of the Arab–Byzantine wars.