Niujie, literally the Street of the Ox, is the oldest and most storied Muslim quarter in Beijing, a dense neighborhood in the southwestern part of the old city where the Hui people, Chinese-speaking Muslims, have lived continuously for more than a thousand years. At its heart stands the Niujie Mosque, the largest and among the oldest places of Islamic worship in the capital, a building whose timber halls and courtyard layout reveal a remarkable blend of Chinese palace architecture and Islamic function. The district is far more than a religious site; it is a living archive of the long encounter between Chinese civilization and the wider Muslim world carried along the Silk Roads, and a working community of butchers, bakers, scholars, and merchants whose food, language, and faith have shaped Beijing's urban character. To walk Niujie today is to read a layered history of migration, conversion, imperial patronage, and resilient minority culture in the very center of the former imperial capital.
Origins of the Hui Community in the Capital
The presence of Muslims in the Beijing region reaches back to the Liao dynasty, when the Khitan rulers controlled the northeast and trade brought Central Asian and Persian merchants northward. The community took firmer shape under the Jin and especially the Yuan, when the Mongol conquests moved large numbers of Central Asian soldiers, artisans, and administrators into the capital region. These newcomers, known in Chinese sources by various terms that later consolidated into the category Hui, were not a single ethnic group but a broad population united by the practice of Islam and by Arabic and Persian literary heritage.
What distinguished the Beijing Muslims from later arrivals was their gradual adoption of Chinese as a mother tongue while retaining Islamic law, diet, and ritual. Intermarriage, conversion of local Chinese, and the settled life of the marketplace produced a distinctly Chinese Muslim identity. Niujie became the focal point of that identity because the mosque there anchored the community's religious and social life across centuries of changing dynasties.
Unlike the nomadic or frontier Muslims of the western regions, the Hui of Niujie lived inside the walls of the greatest city in East Asia, serving the imperial court, the military, and the bazaars. Their story is therefore a story of coexistence at the very center of power, a minority that remained visibly different yet deeply embedded in the capital's economy and culture.
The Founding of the Niujie Mosque
The Niujie Mosque is traditionally dated to the year 996, during the Liao dynasty, making it more than a millennium old. According to local tradition, a Muslim scholar named Nazaruddin sponsored its construction on land granted by the Liao court, and the original structure was a modest prayer hall oriented toward Mecca. The mosque was rebuilt and expanded repeatedly under the Yuan, Ming, and Qing, each era leaving its mark on the woodwork, the steles, and the courtyards.
Architecturally, the building is a striking synthesis. From the outside and in its rooflines, brackets, and painted beams it resembles a Chinese Buddhist or Daoist temple, with sweeping tiled eaves and a south-facing axis. Yet the interior is arranged for congregational prayer, with a mihrab indicating the direction of Mecca and inscriptions in Arabic and Chinese recalling the names of God and the Prophet. This dual vocabulary let the mosque belong to the city's townscape while remaining unmistakably a house of Islam.
The Ming and Qing renovations added the prominent minaret known as the Wangyue Tower, or Moon-Viewing Tower, a pagoda-like structure used to sight the lunar calendar that determines the Islamic holy days. The presence of such a tower, built in Chinese style, is one of the clearest signs of how thoroughly the community had rooted itself in local building tradition without abandoning its faith.
Street Life and the Market Economy
For centuries Niujie has been defined by its markets. Because Islamic law forbids the consumption of pork and requires ritually slaughtered meat, the neighborhood became the capital's center for halal butchery, and the name Ox Street itself reflects the trade in beef and mutton that filled its lanes. Generations of Hui families ran slaughterhouses, noodle shops, pastry stalls, and tea houses that supplied not only the local faithful but curious customers from across the city.
The economic life of Niujie was never isolated. Hui merchants were celebrated as traders and transporters, and their goods moved between the capital and the northern frontier, the Mongolian plateau, and the caravan routes leading westward. The neighborhood's workshops produced leather, knives, and sesame snacks still associated with Beijing's Muslim food culture. In this sense Niujie functioned as a small node in a vast trans-Eurasian network of exchange.
Daily rhythm in the quarter followed the calls to prayer and the demands of the kitchen. The sound of the market at dawn, the scent of roasted lamb, and the sight of families carrying trays of festival pastries created a sensory world that differed from the Confucian and Buddhist city surrounding it, yet contributed to the capital's famed culinary diversity.
Food as Cultural Identity
No account of Niujie is complete without its food, which is among the most visible expressions of Hui identity in Beijing. The taboo on pork and the requirement of zabiha slaughter produced a cuisine built around lamb, beef, wheat, and a profusion of spices and nuts borrowed from Central Asia. Signature items include the flaky sesame biscuits known as buzha, the stuffed pancakes, the roasted duck prepared without forbidden ingredients, and the sweet glutinous treats sold at festivals.
Halal eating in Niujie also became a point of contact with the wider city. Non-Muslim Beijingers have long flocked to the quarter for its noodles and pastries, and the label Qingzhen, meaning pure and true, came to mark a style of cooking recognized across China. The communal meal, shared during the two great festivals of Eid, reinforced both kinship and neighborhood solidarity in a crowded urban setting.
Foodways carried memory as well as sustenance. Recipes passed from mother to daughter encoded the geography of the community's origins, preserving traces of Samarkand, Bukhara, and the oasis towns of the northwest within the confines of a single Beijing street. In this way the kitchen became a quiet archive of a people's long migration.
Language, Script, and Learning
The Hui of Niujie developed a distinctive literary culture that bridged Arabic, Persian, and Chinese. Scholarly families maintained knowledge of the Quran and Islamic law in the original languages while writing commentaries and poetry in fluent classical Chinese. A special script, sometimes called Xiao'erjing, used modified Arabic letters to write Chinese, allowing the faithful to read their own tongue in a familiar sacred alphabet.
Mosque schools trained imams and teachers who served communities far beyond the capital, making Niujie a kind of seminary for Chinese Islam. The steles within the mosque record donations, repairs, and imperial grants in both Chinese and occasionally Arabic, documenting a community literate in multiple traditions. This bilingual learning helped the Hui negotiate their place between the court and the ummah, the worldwide community of believers.
Such scholarship also produced a genre of Chinese Muslim writing that defended the compatibility of Islamic monotheism with Confucian ethics, arguing that the two paths shared reverence for family, learning, and good conduct. Niujie was a seedbed of that synthesis, and its graduates carried the argument to Hui communities from Gansu to Yunnan.
Imperial Patronage and Protection
Successive dynasties treated the Niujie Mosque with a mixture of tolerance and oversight. The Yuan court, itself reliant on Muslim administrators for finance and astronomy, endowed the mosque and protected its community. Ming and Qing emperors issued tablets and grants, and the Qing in particular stationed officials to manage the affairs of the capital's Muslims, recognizing their usefulness as soldiers and merchants.
Protection was not always steady. Periods of suspicion and occasional riot tested the community, yet the mosque survived every upheaval, in part because the Hui proved indispensable to the urban economy and in part because their leaders cultivated loyalty to whatever regime held the throne. The imperial stele at Niujie is therefore a document of negotiation as much as piety, a record of a minority securing space within an autocratic state.
The architecture itself became a token of that arrangement. By building their house of worship in the visual language of the empire, the Hui signaled belonging, while the Arabic inscriptions asserted a loyalty that transcended the borders of China. The result was a monument that reassured rulers and uplifted the faithful at once.
Niujie in the Modern City
The twentieth century brought profound change. The fall of the Qing, the wars of the republican era, the Japanese occupation, and the communist transformation each reshaped the quarter. Urban renewal in the late twentieth and early twenty-first centuries demolished many of the old courtyard houses and narrow lanes, replacing them with wider streets and apartment blocks, even as the mosque was restored and expanded to serve a growing population.
Today Niujie is both a heritage site and a working district. The restored mosque draws visitors and worshippers, the market still sells halal food, and the subway brings newcomers who come to taste the famous snacks. Yet the displacement of long-time residents and the loss of the old lane texture have raised familiar questions about how a living community can be preserved without freezing it into a museum.
The Hui themselves have adapted, entering professions far beyond the market stall, yet many still return to Niujie for marriage, burial, and festival, binding the dispersed descendants of the quarter back to the street that named them. The neighborhood thus endures as a center of identity even as its physical form changes.
Festivals and the Rhythm of the Year
The Islamic calendar gives Niujie its annual shape. The two Eids, the feast that ends the fast of Ramadan and the feast of sacrifice, fill the mosque and the streets with prayers, visits, and shared meals. The month of Ramadan itself transforms the quarter, as days of fasting give way to the nightly break of the fast and the recitation of the Quran deep into the evening.
These observances are public as well as private. Neighbors exchange gifts of pastries, the wealthy distribute meat to the poor, and the imam's sermon addresses the practical concerns of the community alongside the demands of faith. The festivals therefore function as a periodic renewal of social bonds, a moment when the entire quarter acts as a single household.
For the wider city, the festivals are a window into a tradition often misunderstood. The sight of thousands gathered for the Eid prayer, and the aroma of charity meals, reminds Beijing that its history is woven from many threads, of which the Muslim one is among the oldest and most enduring.
Architecture and the Moon-Viewing Tower
The most photographed feature of the mosque is the Wangyue Tower, a slender, multi-eased structure rising above the tiled roofs of the courtyards. Though sometimes called a minaret, its function was astronomical, used to observe the moon that fixes the start of each lunar month in the Islamic year. Its Chinese silhouette makes it unique among the minarets of the world, a fusion that could only have arisen in a Sino-Islamic setting.
Inside, the prayer hall can hold a large congregation beneath ceilings painted with vegetal and geometric motifs that avoid figurative imagery in keeping with Islamic custom. The beams and brackets, however, are pure Chinese carpentry, and the result is a space that feels both imperial and devotional. The contrast is the essence of Niujie, a Chinese frame filled with Muslim worship.
The courtyards, with their old trees, stone steles, and calm pools, offer a retreat from the noise of the modern street outside. For the faithful they are a continuation of a thousand years of gathering, and for the visitor they are a lesson in how architecture can hold two civilizations at once without diminishing either.
The Broader Legacy of a Beijing Muslim Quarter
Niujie matters because it complicates the easy image of a homogeneous Chinese capital. It shows that Beijing was always a city of minorities, of frontier traders and inner-Asian influences, of languages and faiths that arrived over the steppe and the desert. The Hui of Niujie were neither visitors nor rebels but builders of the city itself, and their mosque is among its oldest monuments.
Scholars of Chinese Islam regard Niujie as a key to understanding how a universal religion took root in a civilization organized around Confucian rites and imperial exams. The answer lies precisely in the neighborhood's genius for translation, its ability to speak in Chinese forms while keeping an Arabic soul, and its willingness to serve the state while remembering Mecca.
For the traveler, finally, Niujie offers more than a photo opportunity. It offers the chance to stand inside a continuous millennium of urban minority life, to taste a cuisine born of long journeys, and to hear the call to prayer echoing off buildings that look, at first glance, like any other temple in the old capital.
❓ Frequently Asked Questions
How old is the Niujie Mosque?
The mosque is traditionally dated to the year 996 during the Liao dynasty, making it more than one thousand years old. It has been rebuilt and expanded many times since.
Why does the mosque look like a Chinese temple?
The Hui built their house of worship in local Chinese architectural style, with tiled roofs and painted brackets, while keeping the interior oriented to Mecca. This fusion let it belong to the capital's townscape.
Who are the Hui people?
The Hui are Chinese-speaking Muslims, a minority formed over centuries from Central Asian migrants, converts, and intermarriage, united by the practice of Islam rather than by a single ethnicity.
What is Xiao'erjing?
Xiao'erjing is a writing system that uses modified Arabic letters to spell Chinese, allowing the faithful to read their own language in a sacred alphabet familiar from the Quran.
What food is Niujie famous for?
The quarter is celebrated for halal lamb and beef dishes, sesame biscuits, stuffed pancakes, and festival pastries, all prepared according to Islamic dietary law.
Is Niujie still a living community?
Yes. Although urban renewal changed its lanes, the restored mosque, the market, and the festivals keep Niujie a working center of Hui identity in modern Beijing.