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.
The building has only been used for its original purpose since it was built.