The Royal Site of San Lorenzo de El Escorial ( ), commonly known as Monasterio del Escorial ( ), is a historical residence of the King of Spain, in the town of San Lorenzo de El Escorial, about 45 kilometers northwest of the Spanish capital, Madrid.