After Felipe II's decisive victory in the Battle of St Quentin against the French on St Lawrence's Day, 10 August 1557, he ordered the construction of the complex in the saint's name above the hamlet of El Escorial. Several villages were razed to make way for the huge monastery, royal palace and mausoleum for Felipe's parents, Carlos I and Isabel. It all flourished under the watchful eye of the architect Juan de Herrera, a towering figure of the Spanish Renaissance.
The palace-monastery became an important intellectual centre, with a burgeoning library and art collection, and even a laboratory where scientists could dabble in alchemy. Felipe II died here on 13 September 1598.
In1854 the monks belonging to the Hieronymite order, who had occupied the monastery from the beginning, were obliged to leave during one of the19th-century waves of confiscation of religious property by the Spanish state, only to be replaced 30 years later by Augustinians.