 Although the enclosure walled of the city was built in time of Julius Caesar on the former Carthaginian defense, the gate corresponds to the extension made by the Sultan Ali ibn Yusuf in the 12th century, and its present appearance is the result of a remodeling carried out between the years 1723 and 1795, in which the Islamic architectural elements were replaced by the classicist air which presents today.It was the gate used by the kings who visited for the first time the city, and to its walls it rose an altar in that performing their lawsuit tribute, and after which were handed the keys of the city to they, and so did Alfonso XI of Castile (1327), Isabella I of Castile (1477), Ferdinand II of Aragon (1508), Charles V, Holy Roman Emperor and his fiancee Isabella of Portugal (1526), and finally Philip IV (1624).Crowns the set the ceramic altarpiece by painter Manuel Rodríguez representing the Virgin of Hope of Macarena, inaugurated in 1923 by the infanta Maria de la Esperanza of Bourbon-Two Sicilies.