Huge round bastions topped by ornate 14th-century minarets of Al-Muayyad Mosque ( 1420 ) frame the tiny gate , which was used as a permanent scafeld to hang criminals in years gone by .
Al-Muayyad Mosque was built in the early seventeenth century .