A library is a building or room containing a collection of books, periodicals, and sometimes films and recorded music for people to read, borrow, or refer to. Libraries serve as centers for learning, research, and community activities.