A library is a collection of books, and possibly other materials and
media, that is accessible for use by its members and members of allied
institutions. Libraries provide physical (hard copies) or digital access
(soft copies) materials, and may be a physical location or a virtual
space, or both. A library's collection normally includes printed materials
which can be borrowed, and a reference section of publications which are
not permitted to leave the library and can only be viewed inside the
premises. There may be other physical resources in many formats, such as
commercial releases of films, television programmes, other video
recordings, radio, music and audio recordings on DVD, Blu-ray, CD and
cassette, besides access to information, music or other content held on
bibliographic databases.
More info on Wikipedia