A door is a hinged or otherwise movable barrier that allows ingress (entry) into and egress (exit) 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 ntrolling access to the doorway (portal). nventionally, it is a panel that fits into the doorway of a building, room, or vehicle.