<P> It was built by Mughal emperor Shah Jahan between 1644 and 1656 at a cost of 1 million rupees, and was inaugurated by an imam from Bukhara, present - day Uzbekistan . The mosque was completed in 1656 AD with three great gates, four towers and two 40 m high minarets constructed of strips of red sandstone and white marble . The courtyard can accommodate more than 25,000 people . There are three domes on the terrace which are flanked by the two minarets . On the floor, a total of 899 black borders are marked for worshippers . The architectural plan of Badshahi Masjid, built by Shah Jahan's son Aurangzeb at Lahore, Pakistan, is similar to the Jama Masjid, Delhi . </P> <P> The mosque has been the site of two attacks, one in 2006 and another in 2010 . During the first, two explosions occurred in the mosque, injuring thirteen people . In the second, two Taiwanese students were injured as two gunmen opened fire upon them . </P> <P> Mughal emperor Shah Jahan built the Jama Masjid between 1644 and 1656 . It was constructed by more than 5000 workers . It was originally called Masjid - i - Jahan - Numa, meaning' mosque commanding view of the world' . The construction was done under the supervision of Saadullah Khan, wazir (or prime minister) during Shah Jahan's rule . The cost of the construction at the time was one million Rupees . Shah Jahan also built the Taj Mahal, at Agra and the Red Fort in New Delhi, which stands opposite the Jama Masjid . The Jama Masjid was completed in 1656 AD (1066 AH). The mosque was inaugurated by an Imam Bukhari, a mullah from Bukhara, Uzbekistan, on 23 July 1656, on the invitation from Shah Jahan . About 25,000 people can pray in the courtyard at a time and it is sometimes regarded as India's largest mosque . The mosque is commonly called "Jama" which means Friday . </P> <P> After the British victory in Revolt of 1857, they confiscated the mosque and stationed their soldiers here. They also wanted to destroy the mosque to punish the people of the city . But due to opposition faced, the demolition was not done . </P>

Who built the red fort and the jama masjid in delhi