Many of the historical events of Khomeini Shahr are influenced by the events that took place in Isfahan. However, the historical antiquity of this region dates back to the Sassanid era, the ancient fortress which is located on the way to Isfahan, seems to have been the capital of the Sassanids. In the Islamic era, this area was also very important, and the existence of a large Grand Mosque in Khozan Alley shows that it was a city in the past. Because the Grand Mosque is an urban feature and the villages do not have it. In Mohammad Afghan's invasion of Isfahan, the people of the century bravely persevered and captured a large number of Mahmoud's troops.