During Ottoman times the fortress was used as a prison and a treasury.
Before it was a fortress, it was used as a prison and a treasury.