At the outbreak of the Prussian war with Denmark he was officer of the watch on the steam-powered Gunboat Loreley, under command of Captain Hans Kuhn. On 17 March 1864 he participated in the naval battle at Jasmund. At the end of the war in 1866 the Prussian navy was transferred to the North German Confederation.