The oldest and largest mosque in Beijing, at the heart of the city's main Muslim quarter, which by its own tradition was founded in 996. Behind a gate tower for watching the new moon, its courtyards look like a Chinese temple, with tiled roofs, painted eaves and stone tablets, but its prayer hall faces west towards Mecca, its arches are covered with Arabic calligraphy in gold, and in a small court lie two imams who came from the west seven centuries ago.
Niujie (牛街), Ox Street, is a broad street of halal butchers, bakeries of sesame cakes and restaurants of hot pot, where the shop signs carry Arabic letters beside the characters. Halfway along, across from a screen wall, rises a two-storey gate tower with red pillars and a tiled roof that would look at home in any Chinese temple. Through the side gates you enter a quiet court of old trees, stone tablets on tortoises and painted halls, and at its west end the long prayer hall, where the faithful face Mecca under ceilings gilded with verses of the Qur'an.
By the mosque's own tradition it was founded in 996, under the Liao dynasty (916–1125), by a scholar from the west; the buildings standing today are mostly of the Ming (1368–1644), rebuilt from 1442 and given the name Libaisi, House of Worship, by the emperor in 1474, and enlarged under the Kangxi Emperor in 1696. It is the spiritual centre of Beijing's Hui, the Chinese-speaking Muslims descended from Persian, Arab and Central Asian traders and soldiers who settled in China over many centuries.
Why come here?
Only here: Beijing's oldest mosque, where Islamic worship has taken the form of a Chinese temple, with the tombs of two imams of the 1280s.
Original or rebuilt? Founded, by tradition, in 996; the present halls are Ming and Qing (1368–1912), restored in 1955, 1979 and 1996.
The moment: standing in the court as the call to prayer is given and the faithful walk past you to the prayer hall.
Worth the trip? Four stars: a short visit to a living place of worship and to the Muslim quarter of Beijing, best combined with lunch on Niujie.
Who it suits: anyone curious about Islam in China, lovers of architecture and of food. The catch: the prayer halls are closed to non-Muslims, and visits pause at prayer times.
Why it matters Niujie Mosque is not a World Heritage Site. It matters as the oldest and largest mosque of the capital, and as one of the clearest examples of how Islam in China took the forms of Chinese architecture while keeping its faith and its direction of prayer.
Enter by the side gate beside the Moon-Watching Tower (望月楼), walk through the court past the minaret pavilion and the stele pavilions, look into the small court of the Shaykhs' tombs, and stand at the door of the prayer hall to see its gilded arches from outside. Then walk along Niujie for lunch.
The compound faces east onto Niujie. At the front stands the Moon-Watching Tower, with the prayer hall behind it to the west; the minaret pavilion, the Bangkelou, stands in the middle court, flanked by stele pavilions; the tombs of the Shaykhs are in a small court to the south-east, and the women's prayer hall and teaching rooms around the sides.
A faith in a new country
When a faith travels, its buildings often take the forms of the land it reaches. Think of a church, mosque or temple in your own country built in the local style, and what it kept from its homeland.
Its counterparts elsewhere
The Great Mosque of Xi'an, another mosque in Chinese form; the Qingjing Mosque in Quanzhou, built in stone in the Arab style; and in Beijing the Dongsi Mosque.
Who looks after it
The mosque's imams and management committee and the Hui community of Niujie; it is protected as a national cultural heritage site.
Why it matters
Because here, in the capital, a faith from far to the west has been practised for centuries in halls of Chinese timber and tile, still facing Mecca.
Now that you know so much about the history and culture of this place, is there anything you would like to say to future visitors? Leave a message
Go deeper: five chapters, from a mosque of the Liao (916–1125) to a quarter of Beijing's Hui people5 chapters · about 3 min to read
What this place is: (1) the oldest and largest mosque of Beijing, founded by tradition in 996, rebuilt in the Ming and enlarged in the Qing; (2) a mosque in the form of a Chinese temple compound, its prayer hall facing west; (3) the centre of the Hui Muslim quarter of Niujie.
What you see: the Moon-Watching Tower at the gate, the courts and the minaret pavilion, the stele pavilions, the tombs of the Shaykhs, the prayer hall from its door, the women's prayer hall, and outside the street of halal shops. Allow an hour, with lunch on Niujie.
1. A mosque in the south-west of the city, 996–1442
Muslims had lived in China since the Tang dynasty (618–907), first as traders in the ports of the south and on the caravan roads of the north-west. In 996, the mosque's tradition says, a scholar named Nasuruddin founded a place of prayer here, in the south-west of what was then a Liao city. Under the Mongol Yuan dynasty (1271–1368), whose armies and government brought many Persians, Arabs and Central Asians east, the Muslim community of Beijing grew, and two imams who came to teach here died in 1280 and 1283; their gravestones, inscribed in Arabic, still stand in the mosque. The mosque's founding year, by its tradition, was four years before the year 1000, when the Song dynasty (960–1279) ruled the south of China.
In the Ming the mosque was rebuilt from 1442 in the way Beijing built everything: halls of timber on stone bases, with tiled roofs, painted beams and courtyards. In 1474 the Chenghua Emperor gave it the name Libaisi, House of Worship. Yet the plan follows the faith: where a Chinese temple faces south, its main hall faces east so that worshippers inside face west, towards Mecca; there are no images, only calligraphy; and at the gate stands a tower from which the imams watch for the new moon that begins and ends the fast of Ramadan. It is as if a mosque had been translated into Chinese, word for word in timber and tile.
The painted ceiling and gilded arches inside the prayer hallNik Wheeler, Public domain
The prayer hall is the largest building, its roof made of several Chinese roofs joined side by side so that it can be long and deep enough for about a thousand people to pray in rows. Inside, the red pillars carry carved and gilded pointed arches covered with verses of the Qur'an in Arabic, and the coffered ceiling is painted with flowers rather than dragons or figures. At the far west end is the niche, the mihrab, that shows the direction of Mecca, in a hexagonal inner hall. Women pray in a separate hall of their own. Non-Muslim visitors may look in from the door.
In 1696 the Kangxi Emperor's reign saw the mosque enlarged, and its stele pavilions keep inscriptions of the Ming and Qing (1368–1912). The mosque tells that in 1694 someone accused the Muslims of Niujie of plotting by night; the emperor had them watched in disguise, found they were only praying, and issued an edict ordering that they be left in peace. In the small court in the south-east, the two Yuan gravestones of the imams stand among tiered stone monuments. The mosque was restored after 1949, in 1955, 1979 and 1996, and remains a working mosque.
The quarter around the mosque, where many of Beijing's Hui live, takes its name, Ox Street, by the usual explanation, from the beef and mutton sold here by Muslim butchers, who could not sell pork. The old one-storey courtyard houses were mostly replaced by apartment blocks in the 1990s and 2000s, but the street is still the place where Beijing comes for halal hot pot, sesame cakes and sweet rice cakes, and where at the great festivals the courts of the mosque are filled with worshippers.
Nasuruddin (scholar, 10th century)The son of a learned man from the west who, according to the mosque's tradition, founded it in 996.
Chenghua Emperor (emperor, 1447–1487)The emperor of the Ming dynasty (1368–1644) who in 1474 gave the mosque its official name, Libaisi, House of Worship.
Kangxi Emperor (emperor, 1654–1722)The emperor of the Qing dynasty (1644–1912) under whom the mosque was enlarged in 1696, and who, the mosque tells, protected its people against slander.
Tickets and travel info
Tickets and hours
10 yuan (approx.) for foreign visitors; open by day, with visits paused at prayer times; the prayer halls are for Muslims only.
Last checked 2026-11-25. Visit Beijing information checked on 25 November 2026: the mosque is an active place of worship; non-Muslim visitors are welcome in the courtyards by day outside prayer times; admission for foreign visitors is 10 yuan (approx.); the prayer halls are for Muslims only, visitors must dress modestly and keep quiet, and photographs are not allowed in the prayer areas.
Find a guide
Once you've read our history and culture pages, a guide is the best way to go deeper and make the most of your visit. You can find guides on these sites:
Start at the Moon-Watching Tower (望月楼), walk through the courts to the tombs, and finish at the door of the prayer hall; then walk Niujie.
Before you go
Dress modestly, with arms and legs covered; keep quiet; no photographs in the prayer areas; avoid Friday midday prayers and the great festivals if you want to look round.
Book tickets
Tickets are available on the official website below. You can also book through our partner sites: we earn a small commission at no extra cost to you, and it helps keep Timeless Places running. Thank you for your support! Some official sites ask for a local ID, so international visitors can't book there; in that case, our partner sites are the easiest choice.
This button opens one of several booking sites, such as Booking.com, Expedia, Hotels.com, Agoda or Vrbo, picked automatically. If it isn't the one you'd like, just close it and click again. Thank you for your support!
Opening hours are given in the local time of the place. Prices are in the local currency. The figure after ≈ is approximate, at exchange rates checked on 9 November 2026, in .
In pop culture
We have not found a film, a song or a famous visitor for this place yet.
Meanwhile in the world
Year
Here
Elsewhere
996
The mosque is founded, by its tradition
Otto III is crowned emperor in Rome
1474
The emperor names it Libaisi
Caxton prints the first book in English
1696
The mosque is enlarged under Kangxi
Peter the Great takes Azov
One line to remember: a mosque in the form of a Chinese temple, facing Mecca, with a tower for the new moon and two imams from the west.
These are stories people tell about this place. They are legends, not history, and each one says where it comes from.
LegendThe emperor's edict
The mosque tells that in 1694 the Kangxi Emperor, hearing that the Muslims of Niujie (牛街) met at night to plot, went or sent men in disguise, found them at prayer, and issued an edict protecting them, which the mosque keeps.
Source: Mosque tradition; the edict tablet is shown at the mosque, but its authenticity is debated by historians
Later, people who live here will be able to add the stories they grew up with, and say which of these they have heard.
Not certain, and where accounts conflict
Was it really founded in 996?
That is the mosque's tradition and is widely repeated; the oldest datable objects are the gravestones of 1280 and 1283, and the present buildings are Ming and Qing (1368–1912).
How big is it?
Sources give anything from about six thousand to ten thousand square metres, depending on what is counted.
Can I go into the prayer hall?
Not if you are not Muslim; you may look in from the door when no prayer is under way.
Look for these
Find the Moon-Watching Tower (望月楼) at the gate.
Find Arabic letters on a painted eave.
Find the two Yuan gravestones in the tomb court.
I am here
Stand at the site, sign in, press the button, and collect its stamp. Your browser will ask to use your location. It is sent to us once to confirm that you are at the site; we keep how far you were from it, not the spot where you stood.
Your stamps are saved to your account, so they follow you to any device. Checking from a browser cannot rule out every false location; stricter checks arrive with the app.
Share your photos
Photos here show the place, not people. Each one is credited to the visitor who took it and appears after our team has looked at it. A photo with you in it belongs under “I am here”.