It is a religious and social group unit centered on the mosque and including the surrounding Muslim residents. Also known as the Temple Square. It has a long history and was originally formed and developed on the basis of mosques established by Muslims for the actual needs of collective worship. During the Tang and Song Dynasties, Arab and Persian Muslims who came to China's southeast coastal commercial ports to do business concentrated in the area designated by the government in order to handle religious and litigation affairs according to their own habits and systems, which was called "Fanfang". In the Yuan Dynasty, with the military activities of Mongolian unification of China, a large number of Muslims of all ethnic groups in Central Asia and West Asia were sent to China to engage in military industry, labor and fighting, and then sent to border defense and land reclamation. From then on, they settled in China and formed their own settlement around the mosque. Due to the common religious belief and life, the organization form centered on mosque began to take shape, and gradually transitioned to the teaching workshop system of imam. During the Yuan and Ming Dynasties, Muslim nationalities such as Hui nationality were formed one after another, and the situation that Muslims and non-Muslims lived together everywhere. Therefore, in the case that Muslims in urban and rural areas are not concentrated, the organizational form of teaching workshops is more common. Since the end of Ming Dynasty and the beginning of Qing Dynasty, Confucian classics education and religious academic and cultural activities based on Jiao Fang Mosque have been rising day by day, and some national habits formed by the religious life of various Muslim nationalities have been gradually established, enriching and perfecting the contents of Jiaofang religion and making its characteristics more prominent. Muslim residents in Jiao Fang, known as "Gaomu" or "Gaomani" in some areas, generally belong to a certain sect or an official, and there are many miscellaneous situations. Residents enjoy rights and perform obligations in Jiao Fang. Generally speaking, the teaching workshops are not subordinate to each other, and they are independent. In the past, there were several "Shaoma Temple" (small temples) under the "Haiyi Temple" (the Central Grand Temple) in some towns. Residents of Shaoma Temple Square went to Haiyi Temple to attend assembly ceremonies and ceremonies every Sunday, Eid al-Fitr and Eid al-Adha. In northwest China, there is an expanded teaching workshop system in some menhuan sects, that is, the appointment of imams and temple affairs in various monasteries, which are unified under the jurisdiction of the leaders or "Reyes" (that is, the regional representatives of the leaders). In some areas, when religious workshops hold grand religious activities, hire imams or hold weddings and funerals for their residents, they also reciprocate, help each other and congratulate each other.