The Hakim Mosque is located in Isfahan at a street with the same name, it was originally built as a part of a larger complex. This mosque was built between 1656-1662, during the reign of Shah Abbas II. Current mosque is built on an old site where once a tenth century mosque stood.
The mosque was named after Hakim Muhammad Davoud, also known as Hakim (doctor). He was also known as Toghreb Khan. It is said that Hakim fell out of favour with the Persian rulers and he fled to India. In India, he held an important position in the court of Aurangzeb (then a Mughal ruler of India). Hakim made a fortune in India and part of his fortunes were sent to Isfahan to build this mosque.