Dreaming of an enclosure or an enclosed place often means that you have set up strong defense mechanisms in order to avoid experiencing emotional pain.
You may dream of being in an enclosure if you have had a traumatic experience. This can be something that has happened recently, or something that happened to you a long time ago.
An enclosed place in a dream – particular one that gives you a sense of foreboding – can signify an aspect of yourself that you are afraid to face. If this enclosed place is locked, your desire to avoid facing this part of yourself is extremely strong.
Being in an enclosed place in a dream can mean that you feel trapped in a situation in real life. You feel frustrated. You may feel that you are being prevented from doing the things that you want to do, or that you are being prevented from working toward a goal.
An enclosure in a dream can be a symbol of spiritual protection.