Adhai Din ka Jhonpra is a mosque that is supposed to be worked inside more than two days by the request for Mohammad Ghori. The sultan ordered the mosque to be built within 60 hours and the laborers worked day and night but were only ready to construct a screen wall so that the sultan could offer his prayers.
During the time of Chauhan tradition, there was a Sanskrit college built by Vigraharaja IV, also known as Visaladeva, who belonged to Shakambhari Chahaman or Chauhan dynasty. The college was built in square shape and a dome-shaped pavilion was constructed on each corner of the building. A temple was also there that was committed to Goddess Sarasvati.
The construction of the building incorporates the highlights of Hindu and Jain design. Some historians say that the mosque was worked by the materials used after the destruction of some old and abandoned Hindu Temples. Others say that the Sanskrit college was a college of the Jains. The local people say that Seth Viramdeva constructed the college to celebrate Panch Kalyanaka. The mosque was constructed after the defeat of Prithvi Raj Chauhan III by Mohammad Ghori in the second clash of Tarain.
After defeating Prithvi Raj Chauhan III, once Mohammad Ghori was passing by Ajmer and saw many temples so he ordered his slave named Qutbuddin Aibak to construct a mosque so that he can offer prayers. The sultan also ordered that the mosque has to be built inside two and a half days.
The laborers worked hard and were able to construct a screen wall where the sultan could offer his prayers. The mosque was finished in 1199 according to an inscription. Iltumish, the successor of Qutbuddin Aibak, built a screened wall with arches and inscriptions on it. The inscriptions have the name of Iltumish and the supervisor named Ahmad ibn Muhammad al-Arid.
The name of the mosque is Adhai Din ka Jhonpra which means shed of two and a half day. There are numerous things related to the name of the mosque. According to a legend, the life of a human being is two and a half day on earth. Historians say that there was a fair used to be held for two and a half days in ancient times.
Different assumptions say that during the Maratha period, fakirs came to celebrate urs and so the mosque was started being called jhonpra. Since the urs was held for two and a half days, so the mosque was named as adhai din ka jhonpra.