Answer
Xi'an and Nanjing were two of the most important cities in the Ming Dynasty. During the Hongwu era, many mosques were renovated and built in these cities. The Ming Dynasty was a time of great religious tolerance, and the construction of mosques was seen as a way to promote religious harmony.