How did the department of defense start?

i know it was founded in 1789
what was a major US event that prompted it's founding?
what are some "sub-groups" of the department?
do you know any other interesting facts about the department?
5 answers 5