The same week that Grant appointed Akerman, Congress created the Department of Justice. Before then, the attorney general had functioned as the president’s legal adviser, operating from the Treasury building without the dignity of a separate department.