A door is a hinged or otherwise movable barrier that allows ingress into and egress from an enclosure. The created opening in the wall is a doorway or portal. A door's essential and primary purpose is to provide security by controlling access to the doorway. A usually swinging or sliding barrier by which an entry is closed and opened also.