In 1769 AD when the city became capital of the Nizams of Hyderabad—(also known as "Asaf Jahi" dynasty), they had constructed many mosques in the process to expand the city, Afzal Gunj Masjid and Shahi Masjid are the resemblance of "Asaf Jahi Masajid"—(Asaf Jahi Mosques).