The Badshahi Mosque (Urdu, Punjabi: ; literally The Royal Mosque) is a Mughal-era congregational mosque in Lahore, capital of the Pakistani province of Punjab. The mosque is located west of Lahore Fort along the outskirts of the Walled City of Lahore, and is widely considered to be one of Lahore's most iconic landmarks. The Badshahi Mosque was constructed by the Mughal emperor Aurangzeb between 1671 and 1673 and was the largest mosque in the world from 1673 to 1986. The mosque is an important example of Mughal architecture, with an exterior that is decorated with carved red sandstone with marble inlay. It remains the largest mosque of the Mughal-era, and is the third-largest mosque in Pakistan. After the fall of the Mughal Empire, the mosque was used as a garrison by the British Empire, and is now one of Pakistan's most iconic sights. History The sixth Mughal emperor, Aurangzeb, chose Lahore as the site for his new imperial mosque. Aurangzeb, unlike the previous emperors, was not a major patron of art and architecture and instead focused, during much of his reign, on various military conquests which added over 3 million square kilometres to the Mughal realm. The mosque was built to commemorate Aurangzeb's military campaigns in southern India, in particular against the Maratha king Shivaji. As a symbol of the mosque's importance, it was built directly across from the Lahore Fort and its Alamgiri Gate, which was concurrently built by Aurangzeb during construction of the mosque. The mosque was commissioned in 1671, with construction overseen by the Emperor's foster brother, and Governor of Lahore, Muzaffar Hussein - also known by the name Fidai Khan Koka. After only two years of construction, the mosque was opened in 1673. Sikh era On 7 July 1799, the Sikh army of Ranjit Singh took control of Lahore. After the capture of the city, Maharaja Ranjit Singh used its vast courtyard as a stable for his army horses, and its 80 Hujras (small study rooms surrounding the courtyard) as quarters for his soldiers and as magazines for military stores. In 1818, he built a marble edifice in the Hazuri Bagh facing the mosque, known as the Hazuri Bagh Baradari, which he used as his official royal court of audience. Marble slabs for the baradari may have been plundered by the Sikhs from other monuments in Lahore. In 1839, after his death, construction of a samadhi