Hartley is a city in O'Brien County, Iowa, United States. The population was 1,733 at the 2000 census.
Hartley was served by the Chicago, Milwaukee, St. Paul and Pacific Railroad from 1878 until 1980, with a line now operated by the Iowa, Chicago and Eastern.