Since then it has been used as a royal palace, army post, school, and prison.
It has been used for an array of things since then.