Why was the department of defense created?

I have a government project and why was the department of defense and the department of education created for??
2 answers 2