National library

A national library is a library specifically established by the government of a country to serve as the preeminent repository of information for that country. Unlike public libraries, these rarely allow citizens to borrow books. Often, they include numerous rare, valuable, or significant works.

There are wider definitions of a national library, putting less emphasis to the repository character.

More information on the Wikipedia page. with a list here.