Original: The Secretary of War headed the war department throughout its existence.
Simplified: The War Department also had responsibility for the young nations naval affairs until the establishment of the Navy Department in 1798.