and the Palace of the Lions, generally date from the reigns of YusufI (r. 1333–1354) and his son MuhammadV (r. 1354–1391, with interruptions). Some smaller examples of Nasrid palace architecture in the city have survived in the Cuarto Real de Santo Domingo (late 13th century) and the Dar al-Horra (15th century).Partly due to the heavy tributary payments to Castile, Granada's economy specialized in the trade of high-value goods. Integrated within the European mercantile network, the ports of the kingdom fostered intense trading relations with the Genoese, but also with the Catalans, and to a lesser extent, with the Venetians, the Florentines, and the Portuguese. It provided connections with Muslim and Arab trade centers, particularly for gold from sub-Saharan Africa and the Maghreb, and exported silk and dried fruits produced in the area. Despite its frontier position, Granada was also an important Islamic intellectual and cultural center, especially in the time of MuhammadV, with figures such as Ibn Khaldun and Ibn al-Khatib serving in the Nasrid court. Ibn Battuta, a famous traveller and historian, visited the Emirate of Granada in 1350. He described it as a powerful and self-sufficient kingdom in its own right, although frequently embroiled in skirmishes with the Kingdom of Castile. In his journal, Ibn Battuta called Granada the "metropolis of Andalusia and the bride of its cities." End of Muslim rule and 16th-century changes On 2 January 1492, the last Muslim ruler in Iberia, Emir Muhammad XII, known as "Boabdil" to the Spanish, surrendered complete control of the Emirate of Granada to the Catholic Monarchs (Ferdinand II of Aragon and Isabella I of Castile), after the last episode of the Granada War. The 1492 capitulation of the Kingdom of Granada to the Catholic Monarchs is one of the most significant events in Granada's history. It brought the demise of the last Muslim-controlled polity in the Iberian Peninsula. The terms of the surrender, outlined in the Treaty of Granada at the end of 1491, explicitly allowed the Muslim inhabitants, known as mudéjares, to continue unmolested in the practice of their faith and customs. This had been a traditional practice during Castilian (and Aragonese) conquests of Muslim cities since the takeover of Toledo in the 11th century. The terms of the surrender pressured Jewish inhabitants to convert or leave within three years, but this provision was quickly superseded by the Alhambra Decree, issued only a few months later on