This suggests that the Generalife was constructed before to the Comares Palace. Despite its proximity to the Alhambra and the close relationship between the two complexes, it is regarded as being outside the city. The name comes from the general nature of the buildings compared to those of the Comares Palace which are more specific to a prince's lifestyle. The Generalife is an extensive garden complex on the outskirts of Granada. It is enclosed by high walls for its protection against intruders. The complex has several gardens with trees, flowers, and fountains. They are all very well maintained. The Generalife was built in the 14th century by King Ferdinand III of Castile as a place of recreation where he could escape from his duties. He had this palace built near the existing one because it was smaller and less pretentious. The original palace was located about where the main building now stands. This new one was designed by Juan de Herrera, who was also responsible for the Royal Chapel in Madrid. The gardens were created at the same time but not finished until many years later. The original idea was to create a kind of paradise where people could relax and have fun after a hard day's work. Today the Generalife is used as a public park where you can see trees, plants, and buildings from different periods of history.