More than a mere palace, El Escorial is an entire royal city living quarters, church, monastery, mausoleum, and museum under one roof.
El Escorial contains a church, a mausoleum, and a museum alongside also being a palace.