He was a delegate to the Continental Congress from Maryland, and the third United States Secretary of War (1796–1800), under the first and second presidents, George Washington (administration: 1789–1797) and John Adams (administration: 1797–1801).