Question: how were the executive departments created?
Answer: In 1789 Congress created three Executive Departments: Foreign Affairs (later in the same year renamed State), Treasury, and War. It also provided for an Attorney General and a Postmaster General. Domestic matters were apportioned by Congress among these departments. The first Interior Building, 1852 -1917.