 He joined the United States Navy in December 1861.He served throughout the Civil War and was discharged in August 1868.Later in 1868, Hayes moved to Milwaukee, Wisconsin and served on several ships that sailed the Great Lakes.