The Imam Khomeini Mosque is right inside the Tehran bazaar and is very much a working mosque and one of the largest and busiest in Tehran. The building itself dates from the early 18th century but the real reason you come here is to see Islam in action.
This mosque proves to be a great piece of architecture and beauty due its vast courtyard, beautiful Shabestans (or nocturnal areas), the giant tile worked dome and interesting arches and entrances.
The courtyard is accessed from several parts of the bazaar and hundreds of people pass through there, so it’s usually possible for non-Muslims to stand and watch the faithful performing their ablutions and praying, though photography is less welcome.
References:
http://www.lonelyplanet.com
http://www.mygola.com