The architect of the eponymous mosque built in the Mamayi neighborhood of Shusha in the 19th century, was Karbala Shafi Khan Karabakh.
There was a “guldeste” (tent-shaped booth for muezzin) on the roof of Mamayi mosque which resembled the other quadrangular house roofs of the residential buildings in Shusha. Mamayi mosque functioned as a poetry house during years of soviet power. The mosque is two-storied