The National Library of Russia (NLR, , РНБ), located in Saint Petersburg, is the first, and one of three national public libraries in Russia. The NLR is currently ranked among the world's major libraries. It has the second biggest library collection in the Russian Federation, a treasury of national heritage, and is the All-Russian Information, Research and Cultural Center. Over the course of its history, the library has aimed for comprehensive acquisition of the national printed output and has provided free access to its collections.
It is known as the Imperial Public Library from 1795 to 1917; Russian Public Library from 1917 to 1925; State Public Library from 1925 to 1992 (since 1932 named after M.Y. Saltykov-Shchedrin); NLR.

History
Establishment
The Imperial Public Library was established in 1795 by Catherine the Great. It was based on the Załuski Library, the famous Polish national library built by Bishop Załuski in Warsaw, which had been seized by the Russians in 1794 after the Partitions of Poland.

The idea of a public library in Russia emerged in the early 18th century but did not take shape until the arrival of the Russian Enlightenment. The plan of a Russian public library was submitted to Catherine in 1766 but the Empress did not approve the project for the imperial library until , eighteen months before her death. A site for the building was found at the corner of Nevsky Avenue and Sadovaya Street, right in the center of the Russian imperial capital. The construction work began immediately and lasted for almost fifteen years. The building was designed in a Neoclassical style by architect Yegor Sokolov (built between 1796 and 1801).

The cornerstone of the foreign-language department came from the Polish–Lithuanian Commonwealth in the form of Załuski's Library (420,000 volumes), seized in part by the Russian government at the time of the partitions, though many volumes were lost en route to theft by Russian soldiers who sold them for profit. The Polish-language books from the library (numbering some 55,000 titles) were returned to Poland by the Russian SFSR in 1921.
For five years after its foundation, the library was run by Comte Marie-Gabriel-Florent-Auguste de Choiseul-Gouffier. The stocks were arranged according to a specially compiled manual of library classification. In 1810, Emperor Alexander I approved Russia's first library law stipulating, among other things, that two legal copies of all printed matter in Russia be deposited in the library.
The library was to be opened for the public in 1812 but, as the more valuable collections had to be evacuated because of Napoleon's invasion, the inauguration was postponed for two years.
Under Count Alexander Stroganov, who managed the library during the first decade of the 19th century, the Rossica project was inaugurated, a vast collection of foreign books touching on Russia. It was Stroganov who secured for the library some of its most invaluable treasures, namely the Ostromir Gospel, the earliest book written in the Old East Slavic dialect of Church Slavonic (which was to eventually develop into the Russian language), and the Hypatian Codex of the Russian Primary Chronicle. He, along with other bibliophiles, also reviewed the collection of manuscripts and letters brought by Peter P. Dubrowsky (1754–1816) who had stayed in the diplomatic service for more than 20 years outside the fatherland. Based on the review, Stroganov recommended to Alexander I the creation of a manuscript depot. Alexander decreed the creation of such a department on February 27, 1805, and named Dubrowsky as the first keeper of the depot of manuscripts.
1814–1917
The Imperial Public Library was inaugurated on in the presence of Gavrila Derzhavin and Ivan Krylov. The library's third, and arguably most famous, director was Aleksey Olenin (1763–1843).
Librarianship progressed to a new level in the 1850s. The reader community grew several times, enlarged by common people. At the same time, many gifts of books were offered to the library. Consequently, collection growth rates in the 1850s were five times higher than the annual growth rate of five thousand new acquired during the first part of the century. In 1859, Vasily Sobolshchikov prepared the first national manual of library science for the library entitled Public Library Facilities and Cataloguing.
The influx of new visitors required a larger reading room in the new building closing the library court along the perimeter (designed by Sobolshchikov, built in 1860–62).





