Felipe II 's greatest lasting legacy is El Escorial , a grandiose palace and monastery in the foothills of the Sierra de Guadarrama , northwest of Madrid .
Felipe II cared little for the palace and monastery , spending most of his time in the city .