Main guard, Royal castle