Mosque of Mariyam Zamani Begum (Urdu: مریم زمانی بیگم کی مسجد) also known as Begum Shahi Mosque (Urdu: مسجد بیگم شاہی ) is a mosque situated in the Walled City of Lahore, Punjab, Pakistan. It was built by Emperor Jahangir, to fulfill the wishes of his mother the Begum Mariam-uz-Zamani (Rajkumari/Maharani Heer Kunwar of Amber, also called 'Maharani Jodha Bai' in popular culture),was wife of Mughal Emperor, Akbar. The mosque is located inside the old Masti Gate and is one of Lahore's first big mosques.
It was temporarily turned into a gunpowder factory by Maharaja Ranjit Singh and due to this reason the mosque became known as Barudkhana Wali Masjid. In 1850 the mosque was returned to the Muslims of Lahore who were able to contribute to its renovation.