The library grew out of a collection of books Count Ferenc Széchényi donated to the nation in 1802. Its holdings found a home in the west wing of Buda Castle.