 In June 1864, Hayes was serving as the second captain of the number two gun of the .The ship was pursuing the CSS "Alabama", a successful commerce raiding ship.On June 19, 1864, the "Kearsarge" found the "Alabama" off of the coast of the French port of Cherbourg.