A short history of Ayr
The area was first settled in 1879 and called the area "The Park Farms". The settlers were from Scotland, specifically they came from Edinburgh and the town of Ayr.
The first permanent house in the area was built by Swedish who went by the name of "Mr. Pearson". Whilst, the first shop in the area was built in 1884 by a certain Dave Francis. The post office was established that same year, on January 7.
The town itself was renamed "Elgin" for a while, however from March 21, 1885 onwards, the town was named "Ayr" due to the presence of a town, which went by the same name, being present in a station of the Dakota territory. The choice for the new name was done by postmaster Frank Dickinson.
Adapted (trimmed) from the Wikipedia article Ayr, North Dakota, revision 1378481893 by its contributors, licensed CC BY-SA 4.0.