The Battle of Gainesville (not to be confused with the First Skirmish of Gainesville of February 14, 1864) was fought on August 17, 1864, when a Confederate force defeated Union detachments on a raid from the Union garrison in the Jacksonville, Florida, area. However, the other and first Battle of Gainesville was fought on 14 February 1864, when a small unit associated with the February 1864 Florida Expedition, defeated a Confederate cavalry unit.