El Escorial is a historical residence of the king of Spain. It is one of the Spanish royal sites and functions as a monastery, royal palace, museum, and school. It is located about 45 kilometres (28 miles) northwest of the Spanish capital, Madrid, in the town of San Lorenzo de El Escorial. El Escorial comprises two architectural complexes of great historical and cultural significance: El Real Monasterio de El Escorial itself and La Granjilla de La Fresneda, a royal hunting lodge and monastic retreat about five kilometres away. El Escorial was, at once, a monastery and a Spanish royal palace. Originally a property of the Hieronymite monks, it is now a monastery of the Order of Saint Augustine.