Doors are generally used to separate interior spaces (closets, rooms, etc.) for convenience, privacy, safety, and security reasons. Doors are also used to secure passages into a building from the exterior, for reasons of climate control and safety.