Behind the ramparts and the gates with sharp iron spikes to stop elephants from ramming them , there is a very handsome residential palace .
The palace was always vulnerable to attack , having no defensive structures .