Behind the ramparts and the gates with sharp iron spikes to stop elephants from ramming them , there is a very handsome residential palace .
The residential palace was a fortress in the past , often attacked by warriors riding on elephants .