barricade oneself
idiomDefinition of barricade oneself
: to block oneself off from other people usually inside something as by locking doors or erecting barricades
Students barricaded themselves in the cafeteria to protest university policies.