He represented this district as a Democratic-Republican in the Third and Fourth Congresses (1793-1797). In 1801, President Thomas Jefferson appointed him Secretary of War, a post he held for eight years until March 7, 1809.