The floor plan of the mosque is similar to that of the Jama Masjid of Agra. It is covered with white and black ornamented marble to look like a Muslim prayer mat. Beside it, a thin black border measuring long and wide is marked for the Muslim worshippers. There are 899 total such boxes. The architecture and plan of Badshahi Masjid, which was built by Shah Jahan's son Aurangzeb in Lahore, is closely related to that of the mosque. Before the Revolt of 1857 there was a madrasa near the southern end of the mosque, which was destroyed during the revolt.