Arent graduated from the United States Naval Academy on 28 May 1863 and immediately went into action in the American Civil War, participating in the assault on Fort Fisher while serving on the steam sloop .