text: The first train to service Foley was a wood burner called the "Pine Knot Special." It would leave Foley in the morning and make a return trip in the afternoon. As people cleared the land, they would place lighter knots in a wood box for the engineer to use as was needed. Foley was incorporated in 1915 with G. I. Weatherly serving as its first mayor.
  Geography
  Foley is located at 30°24'20.138" North, 87°40'53.432" West (30.405594, -87.681509).
  According to the U.S. Census Bureau, the city has a total area of , of which  is land and 0.4% is water.
  Demographics
  2020 census
  As of the 2020 United States census, there were 20,335 people, 8,090 households, and 4,298 families residing in the city.
  2010 census
  As of the census of 2010, there were 14,618 people, 6,165 households, and 4,124 families residing in the city. The population density was . There were 7,359 housing units at an average density of . The racial makeup of the city was 77.1% White, 14.9% Black or African American, 0.6% Native American, 1.1% Asian, 0.1% Pacific Islander, 4.7% from other races, and 1.6% from two or more races. 9.5% of the population were Hispanic or Latino of any race.