temple at the entrance of the palace