 In 1863, the federal government enacted the Idaho Territory, which administratively removed the described portions of Cache County that lay north of the territorial border.Then in 1864, the east part of the county was partitioned to become Rich County.The borders of Cache County have remained in their present state since 1864.