This institution was founded by King Felipe V in 1712 as the National Royal Library. The main facade exhibits allegorical statues that represent the triumph of Letters, Arts and Sciences.

Two reasons motivated the king to create the library: Firstly to develop and spread knowledge to all people, and secondly to compile one of the largest book collections in the world, now with 30 million units on its shelves.