 Wilson was elected to the Seventeenth, Eighteenth and Nineteenth Congresses (March 4, 1821 – March 3, 1827).He was an unsuccessful candidate for re-election in 1826 to the Twentieth Congress.He died at his home near Golden Grove, in Anderson County, South Carolina, August 13, 1828.