When
Pakistan’s capital was shifted from
Karachi to
Islamabad, a central
grand mosque was envisioned as a gathering place for the new city's residents, hence in October 1964,
President Ayub Khan laid the foundation stone for the mosque. According to
Capital Development Authority (CDA) records the project was completed in May 1966. Upon completion the mosque was named "
Markazi Jāmi Masjid Islamabad"(), and it was not initially painted red, however after the small yellow bricks used in its construction, turned out to be defective and started to rot, which the contractor found a solution to by applying cement and painting it red, and since its exterior and interior were now painted red, it became popularly known to the locals as "
Lal Masjid".
President Ayub Khan requested to
Muhammad Yusuf Banuri of
Jamia Uloom-ul-Islamia, to suggest a preacher for the mosque and upon his recommendation,
Mawlānā Abdullah Ghazi was appointed the first
Imam and
Khatib of mosque in 1966. The mosque was major
tourist attraction frequently visited by foreign tourists and delegates during their visits to the new capital and was commonly featured on
postcards. The mosque was also visited by prominent figures such as
Prime Minister Balakh Sher Mazari and
Presidents of Pakistan including
Ghulam Ishaq Khan and
Farooq Leghari. as well as foreign leaders such as
King Faisal,
King Khalid and
President Ziaur Rahman. After retirement, President
Ayub Khan was also a frequent visitor to the mosque, as he lived in a
villa nearby. The mosque gained significant prominence during
President Zia-ul-Haq's government, undergoing extensive renovations and expansions under his orders. Zia frequently prayed at the mosque and especially attended
Friday prayers there every week. In 1976, as part of his six-day state visit to Pakistan,
King Khalid of
Saudi Arabia also visited the mosque, and it was during this visit he initiated the construction of
King Faisal Mosque in Islamabad. == Architecture ==