Gainesville is a town in Sumter County, Alabama, United States. Founded in 1832, it was incorporated in 1835. At the 2010 census the population was 208, down from 220. Confederate Lieutenant General Nathan Bedford Forrest surrendered his men near Gainesville on May 19, 1865, at the Civil War's end.