He stood outside the gate of the palace, because no one who was wearing sackcloth was allowed to enter the palace.