El Escorial is a municipality in the Autonomous Community of Madrid, located 45 km (28 mi) northwest of the Spanish capitalMadrid. Its population in 2003 was 12,669.
The famous Royal Seat of San Lorenzo de El Escorial also known as Monasterio de El Escorial or El Escorial, is located in the adjacent municipality of San Lorenzo de El Escorial. On the outskirts of San Lorenzo de El Escorial is the national memorial Valle de los Caídos (Valley of the Fallen).
The name of the town derives from slag (escoria) deposits from an old local foundry.