Washington appointed McHenry Secretary of War in 1796 and immediately assigned him the task of facilitating the transition of Western military posts from Great Britain's control to that of the United States, under the terms of the Jay Treaty.