A public library is a library that is funded by the government or by private donations and is open to the general public. Public libraries typically provide a variety of services, such as lending books, magazines, and other materials; providing access to electronic resources such as e-books and online databases; and offering programs and events for children, teens, and adults. Some public libraries may also have special collections or archives that contain rare or historical materials. The primary mission of a public library is to provide access to information and knowledge to all members of the community, regardless of their age, income, or background. Public libraries are an important resource for lifelong learning and personal enrichment, and are often considered a cornerstone of a community.