Khomeyn is a city in the Central District of Khomeyn County, Markazi province, Iran, serving as capital of both the county and the district.