A door is a moving structure used to block off, and allow access to, an entrance to or within an enclosed space, such as a building or vehicle. Doors normally consist of a panel that swings on hinges on the edge, but there are also doors that slide or spin inside of a space. Similar exterior structures to doors are called gates.
Doors are used to screen areas of a building for aesthetics, keeping formal and utility areas separate. Doors also have an aesthetic role in creating an impression of what lies beyond. Doors are often symbolically endowed with ritual purposes, and the guarding or receiving of the keys to a door, or being granted access to a door can have special significance. Similarly, doors and doorways frequently appear in metaphorical or allegorical situations, literature and the arts, often as a portent of change.