south was the Palace of the Abencerrajes, and to the east was another private palace, known as the Palace of the Convent of San Francisco, both of which were probably also originally constructed during the time of Muhammad II. Muhammad III (r. 1302–1309) erected the Partal Palace, parts of which are still standing today, as well as the Alhambra's main (congregational) mosque (on the site of the current Church of Santa Maria de la Alhambra). The Partal Palace is the earliest known palace to be built along the northern walls of the complex, with views onto the city below. It is also the oldest Nasrid palace still standing today. Isma'il I (r. 1314–1325) undertook a significant remodeling of the Alhambra. His reign marked the beginning of the "classical" period of Nasrid architecture, during which many major monuments in the Alhambra were begun and decorative styles were consolidated. Isma'il decided to build a new palace complex just east of the Alcazaba to serve as the official palace of the sultan and the state, known as the Qaṣr al-Sultan or Dār al-Mulk. The core of this complex was the Comares Palace, while another wing of the palace, the Mexuar, extended to the west. The Comares Baths are the best-preserved element from this initial construction, as the rest of the palace was further modified by his successors. Near the main mosque Isma'il I also created the Rawda, the dynastic mausoleum of the Nasrids, of which only partial remains are preserved. Yusuf I (r. 1333–1354) carried out further work on the Comares Palace, including the construction of the Hall of Ambassadors and other works around the current Mexuar. He also built the Alhambra's main gate, the Puerta de la Justicia, and the Torre de la Cautiva, one of several small towers with richly-decorated rooms along the northern walls. Muhammad V's reign (1354–1391, with interruptions) marked the political and cultural apogee of the Nasrid emirate as well as the apogee of Nasrid architecture. Particularly during his second reign (after 1362), there was a stylistic shift towards more innovative architectural layouts and an extensive use of complex muqarnas vaulting. His most significant contribution to the Alhambra was the construction of the Palace of the Lions to the east of the Comares Palace in an area previously occupied by gardens. He also remodeled the Mexuar, created the highly-decorated "Comares Façade" in the Patio del Cuarto Dorado, and